~ubuntu-branches/ubuntu/precise/moin/precise-updates

« back to all changes in this revision

Viewing changes to wiki/server/mointwisted

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2008-11-13 16:45:52 UTC
  • mfrom: (0.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20081113164552-49t6zf2t2o5bqigh
Tags: 1.8.0-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Drop recommendation of python-xml, the packages isn't anymore in
    sys.path.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
from MoinMoin.server import daemon
34
34
from mointwisted import Config
35
35
 
 
36
# PID file location, please use some appropriate full path (needs to be writable):
 
37
pidFile = './%s.pid' % Config.name
 
38
 
36
39
 
37
40
class TwistedScript(daemon.DaemonScript):
38
41
 
41
44
        os.system('twistd --python mointwisted.py --pidfile %s' % self.pidFile)
42
45
 
43
46
 
44
 
script = TwistedScript(Config.name, None)
 
47
script = TwistedScript(Config.name, pidFile, None)
45
48
script.run()
46
49