view wiki/server/mointwisted @ 0:77665d8e2254

tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0 (automatically generated log message) imported from: moin--main--1.5--base-0
author Thomas Waldmann <>
date Thu, 22 Sep 2005 15:09:50 +0000
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)