view wiki/server/mointwisted @ 1947:caad2c46e525

some docstring fixes
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 06 Apr 2007 12:50:45 +0200
parents 8ed1a953d12e
children 79f850129782
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)