[straydog@saskatoon testcase]$ ls -Rl
.:
total 8
-rw-r--r-- 1 straydog users 247 Dec 28 23:09 cherrypy_config
drwxr-xr-x 2 straydog users 4096 Dec 28 23:10 problem
./problem:
total 4
-rw-r--r-- 1 straydog users 128 Dec 28 23:10 __init__.py
[straydog@saskatoon testcase]$ cat cherrypy_config
[global]
tree.problem = cherrypy.Application(problem.Problem())
server.socket_host = '0.0.0.0'
server.socket_port = 8090
tools.encode.encoding = 'utf-8'
tools.encode.on = True
log.error_file = "/tmp/cp_errors.log"
[/]
tools.sessions.on = False
[straydog@saskatoon testcase]$ cat problem/__init__.py
#!/usr/bin/python2
# -*- coding: utf-8 -*-
import cherrypy
class Problem(object):
def __init__(self):
print self
[straydog@saskatoon testcase]$ cherryd -c cherrypy_config
<problem.Problem object at 0xa37da2c>
[28/Dec/2011:23:11:17] ENGINE Mounted: cherrypy._cptree.Application(<problem.Problem object at 0xa37da2c>, '') on /
<problem.Problem object at 0xa37df4c>
[28/Dec/2011:23:11:17] ENGINE Listening for SIGHUP.
[28/Dec/2011:23:11:17] ENGINE Listening for SIGTERM.
[28/Dec/2011:23:11:17] ENGINE Listening for SIGUSR1.
[28/Dec/2011:23:11:17] ENGINE Bus STARTING
[28/Dec/2011:23:11:17] ENGINE Started monitor thread '_TimeoutMonitor'.
[28/Dec/2011:23:11:17] ENGINE Started monitor thread 'Autoreloader'.
[28/Dec/2011:23:11:18] ENGINE Serving on 0.0.0.0:8090
[28/Dec/2011:23:11:18] ENGINE Bus STARTED
^C[28/Dec/2011:23:11:21] ENGINE Keyboard Interrupt: shutting down bus
[28/Dec/2011:23:11:21] ENGINE Bus STOPPING
[28/Dec/2011:23:11:21] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 8090)) shut down
[28/Dec/2011:23:11:21] ENGINE Stopped thread 'Autoreloader'.
[28/Dec/2011:23:11:21] ENGINE Stopped thread '_TimeoutMonitor'.
[28/Dec/2011:23:11:21] ENGINE Bus STOPPED
[28/Dec/2011:23:11:21] ENGINE Bus EXITING
[28/Dec/2011:23:11:21] ENGINE Bus EXITED
[28/Dec/2011:23:11:21] ENGINE Waiting for child threads to terminate...
[straydog@saskatoon testcase]$