propellor-0.9.1: property-based host configuration management in haskell

Safe HaskellNone




type ServiceName = StringSource

running :: ServiceName -> PropertySource

Ensures that a service is running. Does not ensure that any package providing that service is installed. See Apt.serviceInstalledRunning

Note that due to the general poor state of init scripts, the best we can do is try to start the service, and if it fails, assume this means it's already running.