The rcctl service module for OpenBSD
Return True if the named service is available.
CLI Example:
salt '*' service.available sshd
Disable the named service to not start at boot.
CLI Example:
salt '*' service.disable <service name>
Return True if the named service is disabled at boot, False otherwise.
CLI Example:
salt '*' service.disabled <service name>
Enable the named service to start at boot.
service.flags can be used to change the default flags.
CLI Example:
salt '*' service.enable <service name> salt '*' service.enable <service name> flags=<flags>
Return True if the named service is enabled at boot and the provided flags match the configured ones (if any). Return False otherwise.
CLI Example:
salt '*' service.enabled <service name> salt '*' service.enabled <service name> flags=<flags>
Return all installed services.
CLI Example:
salt '*' service.get_all
Return what services are available but not enabled to start at boot.
CLI Example:
salt '*' service.get_disabled
Return what services are set to run on boot.
CLI Example:
salt '*' service.get_enabled
The inverse of service.available. Return True if the named service is not available.
CLI Example:
salt '*' service.missing sshd
Reload the named service.
CLI Example:
salt '*' service.reload <service name>
Restart the named service.
CLI Example:
salt '*' service.restart <service name>
Start the named service.
CLI Example:
salt '*' service.start <service name>
Return the status for a service, returns a bool whether the service is running.
CLI Example:
salt '*' service.status <service name>
Stop the named service.
CLI Example:
salt '*' service.stop <service name>
© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.openbsdrcctl_service.html