Runit Facts

runit.RunitManaged

host.get_fact(RunitManaged, service=None, svdir='/var/service')

rns a set of all services managed by runit

service**: optionally check only for a single service svdir**: alternative SVDIR

runit.RunitStatus

host.get_fact(RunitStatus, service=None, svdir='/var/service')

rns a dict of name -> status for runit services.

service**: optionally check only for a single service svdir**: alternative SVDIR

ode:: python

{

‘agetty-tty1’: True, # service is running ‘dhcpcd’: False, # service is down ‘wpa_supplicant’: None, # service is managed, but not running or down,

# possibly in a fail state

}