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

Safe HaskellNone




running :: ServiceName -> Property DebianLike Source #

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.

noServices :: RevertableProperty (HasInfo + UnixLike) UnixLike Source #

This property prevents daemons and other services from being started, which is often something you want to prevent when building a chroot.

When this is set, running and restarted will not start services.

On Debian this installs a /usr/sbin/policy-rc.d script to further prevent any packages that get installed from starting daemons. Reverting the property removes the script.

servicesDisabled :: Propellor Bool Source #

Check if the noServices property is in effect.

data NoServices Source #


Eq NoServices Source # 
Instance details

Defined in Propellor.Property.Service

Show NoServices Source # 
Instance details

Defined in Propellor.Property.Service