angelos.server.main¶
Angelos service starter and maintainer.
-
class
angelos.server.main.PidFile(filename: unicode)¶ Bases:
objectRepresentation of a pid-file in /tmp.
-
property
file¶ Pid file path.
-
get() → int¶ Get pid from pid-file if any.
Returns 0 if no pid.
-
property
pid¶ Process id.
-
put(pid: int)¶ Write pid-file
-
remove()¶ Remove pid-file.
-
property
running¶ Running status.
-
property
-
class
angelos.server.main.ServerProcess¶ Bases:
multiprocessing.context.ProcessServer process forking class.
-
run()¶ Run server daemon control sequence.
-
-
angelos.server.main.cmd_runner()¶ Angelos foreground server process.
-
angelos.server.main.cmd_start()¶ Start background server process.
-
angelos.server.main.cmd_stop()¶ Stop background server process.
-
angelos.server.main.start()¶ Start server application.