|
|
__init__(self,
noopts=0,
keeproot=False)
Initializer that takes care of basic daemon options. |
source code
|
|
|
|
convertSocketOption(self,
optString)
Given a socket option string (eg 'so_rcvbufforce=1') convert to a
C-friendly command-line option for passing to zensocket. |
source code
|
|
|
|
openPrivilegedPort(self,
*address)
Execute under zensocket, providing the args to zensocket |
source code
|
|
|
|
writePidFile(self)
Write the PID file to disk |
source code
|
|
|
|
|
|
|
|
|
|
sighandler_USR1(self,
signum,
frame)
Switch to debug level if signaled by the user, and to default when
signaled again. |
source code
|
|
|
|
|
|
|
changeUser(self)
Switch identity to the appropriate Unix user |
source code
|
|
|
|
|
|
|
sigTerm(self,
signum=None,
frame=None)
Signal handler for the SIGTERM signal. |
source code
|
|
|
integer
|
|
|
integer
|
|
|
integer
|
|
|
|
becomeWatchdog(self)
Watch the specified daemon and restart it if necessary. |
source code
|
|
|
|
|
|
|
|
|
Inherited from CmdBase.CmdBase:
buildParser,
checkLogpath,
generate_configs,
generate_xml_configs,
generate_xml_table,
getConfigFileDefaults,
getGlobalConfigFileDefaults,
getParamatersFromConfig,
loadConfigFile,
parseOptions,
pretty_print_config_comment,
validateConfigFile
|