t.s._twistd_unix : module documentation

Part of twisted.scripts View Source

No module docstring
Class ServerOptions No class docstring; 1/2 methods documented
Function checkPID Undocumented
Function startLogging Undocumented
Function daemonize Undocumented
Function launchWithName Undocumented
Class UnixApplicationRunner An ApplicationRunner which does Unix-specific things, like fork, shed privileges, and maintain a PID file.
Function _getLogObserver Create and return a suitable log observer for the given configuration.
def checkPID(pidfile): (source)
Undocumented
def _getLogObserver(logfilename, sysLog, prefix, nodaemon): (source)

Create and return a suitable log observer for the given configuration.

The observer will go to syslog using the prefix prefix if sysLog is true. Otherwise, it will go to the file named logfilename or, if nodaemon is true and logfilename is "-", to stdout.
ParameterslogfilenameThe name of the file to which to log, if other than the default. (type: str )
sysLogA flag indicating whether to use syslog instead of file logging. (type: bool )
prefixIf sysLog is True, the string prefix to use for syslog messages. (type: str )
nodaemonA flag indicating the process will not be daemonizing. (type: bool )
ReturnsAn object suitable to be passed to log.addObserver.
def startLogging(*args, **kw): (source)
Undocumented
def daemonize(): (source)
Undocumented
def launchWithName(name): (source)
Undocumented
API Documentation for Twisted, generated by pydoctor at 2011-10-27 15:57:47.