Daemon

OLAF can monitor and control other daemon. This is useful when there is other OreSat daemon on card.

class olaf.DaemonState(value)[source]

Systemd unit states.

ACTIVE = 0
RELOADING = 1
INACTIVE = 2
FAILED = 3
ACTIVATING = 4
DEACTIVATING = 5
class olaf.Daemon(name: str)[source]

Quick class to control a systemd daemon.

Parameters:

name (str) – The daemon’s systemd service file name; i.e.: 'mydaemon.service'.

start()[source]

Start the daemon.

stop()[source]

Stop the daemon.

restart()[source]

Restart the daemon.

property status: DaemonState

The state of the daemon.

Type:

DaemonState

property name: str

The name of daemon

Type:

str