Description
Moinmoin standalone server ignores the --pidfile option. Instead, it always use the file ./moin.pid
Steps to reproduce
Example
Try running
cd /tmp moin --config-dir=/etc/moin server standalone --pidfile /var/run/moin.pid --start
Then run
ls -l ./moin.pid /var/run/moin.pid
Component selection
- standalone server
Details
MoinMoin Version |
1.7.0 |
OS and Version |
Debian/Testing (pre Lenny) |
Python Version |
2.5.2 |
Server Setup |
standalone |
Server Details |
|
Language you are using the wiki in (set in the browser/UserPreferences) |
en |
Workaround
change the current directory to the place where the .pid file should be created, before starting moin.
or Apply the patch standalone.py.diff to the file MoinMoin/script/server/standalone.py :
1 --- MoinMoin/script/server/standalone-orig.py 2008-07-06 11:35:47.000000000 +0200
2 +++ MoinMoin/script/server/standalone.py 2008-07-06 11:35:53.000000000 +0200
3 @@ -122,7 +122,7 @@
4
5 if self.options.start:
6 daemon = Daemon('moin', run, Config)
7 - daemon.pidfile = pidfile
8 + daemon.pidFile = pidfile
9 daemon.do_start()
10 else:
11 run(Config)
Discussion
I think this is already fixed, see here: http://hg.moinmo.in/moin/1.7/rev/441a4136db05 (just need to download the latest changeset from hg)
Plan
- Priority:
- Assigned to:
- Status: