view wiki/server/mointwisted @ 33:55ff4feb0f59

src cosmetics: remove TODOs, CVS stuff imported from: moin--main--1.5--patch-34
author Thomas Waldmann <>
date Sun, 25 Sep 2005 11:36:51 +0000
parents 77665d8e2254
children 8ed1a953d12e
line wrap: on
line source
#!/usr/bin/env python
mointwisted - control MoinMoin Twisted server

@copyright: 2004-2005 Thomas Waldmann, Nir Soffer
@license: GNU GPL, see COPYING for details.

# Add the path to directory 
## import sys
## sys.path.insert(0, '/path/to/mointwisted')

import os

from MoinMoin.server import daemon
from mointwisted import Config

class TwistedScript(daemon.DaemonScript):

    def do_start(self):
        """ Override to use twistd daemonizer """
        os.system('twistd --python --pidfile %s' % self.pidFile)       

script = TwistedScript(, None)