1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
#!/usr/bin/env paster exe serve
# This file serves the roles of being an rc script, you
# can run it with "./example_wsgiutils_app.ini start"
# plus start and restart.
[exe]
# Here we could set options for how this server should
# start. These all correspond to command-line options:
# user = username
# group = groupname
# daemon = true
# pid_file = /path/to/pid
# log_file = /path/to/log
# reload = true
# reload_interval = 10
# For this example we'll daemonize:
daemon = true
[server:main]
use = egg:Paste#http
port = 8080
[app:main]
use = egg:PasteScript#test
|