|
startup(processType,
processName,
daemonize=False,
daemonizeTo=' / ' )
Prepare a process for starting, logging appropriate standarised
messages. |
source code
|
|
|
daemonize(stdin=' /dev/null ' ,
stdout=' /dev/null ' ,
stderr=' /dev/null ' ,
directory=' / ' )
This forks the current process into a daemon. |
source code
|
|
|
_daemonizeHelper(processType,
daemonizeTo=' / ' ,
processName=None)
Daemonize a process, writing log files and PID files to conventional
locations. |
source code
|
|
|
_getPidPath(type,
name=None)
Get the full path to the pid file for the given process type and
name. |
source code
|
|
str
|
writePidFile(type,
name=None,
file=None)
Write a pid file in the run directory, using the given process type
and process name for the filename. |
source code
|
|
str
|
_acquirePidFile(type,
name=None)
Open a PID file for writing, using the given process type and process
name for the filename. |
source code
|
|
str
|
deletePidFile(type,
name=None,
force=False)
Delete the pid file in the run directory, using the given process
type and process name for the filename. |
source code
|
|
|
getPid(type,
name=None)
Get the pid from the pid file in the run directory, using the given
process type and process name for the filename. |
source code
|
|
|
|
|
|
|
|
|
|
|
waitPidFile(type,
name=None)
Wait for the given process type and name to have started and created
a pid file. |
source code
|
|
|
waitForTerm()
Wait until we get killed by a TERM signal (from someone else). |
source code
|
|