changeset 4367:8bcdfd815639

mointwisted: better use Config.name for pidFile to avoid conflicts and keep same behaviour as in the past
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 04 Oct 2008 11:22:38 +0200
parents b1c2405d598e
children b88903618c75 60d487171827
files wiki/server/mointwisted
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/wiki/server/mointwisted	Sat Oct 04 10:59:23 2008 +0200
+++ b/wiki/server/mointwisted	Sat Oct 04 11:22:38 2008 +0200
@@ -26,9 +26,6 @@
 #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'
 
@@ -36,6 +33,9 @@
 from MoinMoin.server import daemon
 from mointwisted import Config
 
+# PID file location, please use some appropriate full path (needs to be writable):
+pidFile = './%s.pid' % Config.name
+
 
 class TwistedScript(daemon.DaemonScript):