]> jfr.im git - irc/quakenet/qwebirc.git/commitdiff
Add pidfile option to run.py.
authorChris Porter <redacted>
Thu, 30 Jul 2009 22:59:18 +0000 (23:59 +0100)
committerChris Porter <redacted>
Thu, 30 Jul 2009 22:59:18 +0000 (23:59 +0100)
run.py

diff --git a/run.py b/run.py
index 668c22ef980dd0d28d9386b6f03dc6c4f6d00474..4803cdc1e4a275173df6a0650e375468ebf7e497 100755 (executable)
--- a/run.py
+++ b/run.py
@@ -37,6 +37,7 @@ parser.add_option("-l", "--logfile", help="Path to twisted log file.", dest="log
 parser.add_option("-c", "--clf", help="Path to web CLF (Combined Log Format) log file.", dest="clogfile")
 parser.add_option("-C", "--certificate", help="Path to SSL certificate.", dest="sslcertificate")
 parser.add_option("-k", "--key", help="Path to SSL key.", dest="sslkey")
 parser.add_option("-c", "--clf", help="Path to web CLF (Combined Log Format) log file.", dest="clogfile")
 parser.add_option("-C", "--certificate", help="Path to SSL certificate.", dest="sslcertificate")
 parser.add_option("-k", "--key", help="Path to SSL key.", dest="sslkey")
+parser.add_option("-P", "--pidfile", help="Path to store PID file", dest="pidfile")
 
 sargs = sys.argv[1:]
 if "ARGS" in dir(config):
 
 sargs = sys.argv[1:]
 if "ARGS" in dir(config):
@@ -55,7 +56,9 @@ if options.debug:
 if options.reactor != DEFAULT_REACTOR:
   args1+=["--reactor", options.reactor]
 if options.logfile:
 if options.reactor != DEFAULT_REACTOR:
   args1+=["--reactor", options.reactor]
 if options.logfile:
-  args+=["--logfile", options.logfile]
+  args1+=["--logfile", options.logfile]
+if options.pidfile:
+  args1+=["--pidfile", options.pidfile]
 
 if not options.tracebacks:
   args2.append("-n")
 
 if not options.tracebacks:
   args2.append("-n")