openrc service items
Handles services managed by openrc.
svc_openrc = {
"sshd": {
"enabled": True, # default
"running": True, # default
"runlevel": "default", # default
},
"nginx": {
"enabled": False,
"running": False,
"runlevel": "boot",
},
}
Attribute reference
See also: The list of generic builtin item attributes
enabled
True
if the service shall be automatically started during system bootup; False
otherwise. None
makes BundleWrap ignore this setting.
running
True
if the service is expected to be running on the system; False
if it should be stopped. None
makes BundleWrap ignore this setting.
runlevel
Name of the runlevel this service exists in. Defaults to "default"
.
Canned actions
See also: Explanation of how canned actions work
reload
Reloads the service. Not all services support reloading.
restart
Restarts the service.
stop
Stops the service.