Service
Incomplete documentation - sorry!
Note
Neil - please put some data in technical/class_headings/Service.rst
methods and attributes
-
class lib_openmolar.server.daemon.service.Service[source]
Bases: object
-
__init__()
x.__init__(...) initializes x; see help(type(x)) for signature
-
daemonise(stdin, stdout, stderr)[source]
Double forks the process in the background
to avoid zombies, writes a PID.
-
is_running[source]
true is the process already exists.
-
start_(stdin='/dev/null', stdout='/dev/null', stderr='/dev/null')[source]
checks for a PIDfile,
daemonises the process,
writes the new PIDfile
-
status_()[source]
Check the status of the process (running | not running)
-
stop_()[source]
-
write_pidfile()[source]