angelos.server.main

Angelos service starter and maintainer.

class angelos.server.main.PidFile(filename: unicode)

Bases: object

Representation 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.

class angelos.server.main.ServerProcess

Bases: multiprocessing.context.Process

Server 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.