Permalink
Browse files

Allow daemonizing from command-line.

  • Loading branch information...
1 parent 422191c commit 146d02a14f142b8d989b6eb170166d8608b23c51 @brosner committed Jul 1, 2008
Showing with 2 additions and 0 deletions.
  1. +2 −0 bosnowsgi.py
View
@@ -126,11 +126,13 @@ def parse_parameters():
parser = OptionParser(conflict_handler="resolve")
parser.add_option("-h", "--host", dest="host")
parser.add_option("-p", "--port", dest="port")
+ parser.add_option("-d", "--daemon", dest="daemon", action="store_true")
options, args = parser.parse_args(sys.argv[3:])
if options.host:
params["host"] = options.host
if options.port:
params["port"] = options.port
+ params["daemonize"] = options.daemon
return params
def main():

0 comments on commit 146d02a

Please sign in to comment.