changeset 4366:b1c2405d598e

mointwisted: added missing pidFile parameter
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 04 Oct 2008 10:59:23 +0200
parents 65f8c99cf4b2
children 8bcdfd815639
files wiki/server/mointwisted
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/wiki/server/mointwisted	Sat Oct 04 10:22:32 2008 +0200
+++ b/wiki/server/mointwisted	Sat Oct 04 10:59:23 2008 +0200
@@ -26,6 +26,9 @@
 #from MoinMoin import log
 #log.load_config('/path/to/logging_configuration_file')
 
+# PID file location, please use some appropriate full path (needs to be writable):
+pidFile = 'moin.pid'
+
 # Debug mode - show detailed error reports
 #os.environ['MOIN_DEBUG'] = '1'
 
@@ -41,6 +44,6 @@
         os.system('twistd --python mointwisted.py --pidfile %s' % self.pidFile)
 
 
-script = TwistedScript(Config.name, None)
+script = TwistedScript(Config.name, pidFile, None)
 script.run()