salt.modules.openbsdrcctl_service.py#

The rcctl service module for OpenBSD

salt.modules.openbsdrcctl_service.available(name)#

Return True if the named service is available.

CLI Example:

salt '*' service.available sshd
salt.modules.openbsdrcctl_service.disable(name, **kwargs)#

Disable the named service to not start at boot.

CLI Example:

salt '*' service.disable <service name>
salt.modules.openbsdrcctl_service.disabled(name)#

Return True if the named service is disabled at boot, False otherwise.

CLI Example:

salt '*' service.disabled <service name>
salt.modules.openbsdrcctl_service.enable(name, **kwargs)#

Enable the named service to start at boot.

flagsNone

Set optional flags to run the service with.

service.flags can be used to change the default flags.

CLI Example:

salt '*' service.enable <service name>
salt '*' service.enable <service name> flags=<flags>
salt.modules.openbsdrcctl_service.enabled(name, **kwargs)#

Return True if the named service is enabled at boot and the provided flags match the configured ones (if any). Return False otherwise.

name

Service name

CLI Example:

salt '*' service.enabled <service name>
salt '*' service.enabled <service name> flags=<flags>
salt.modules.openbsdrcctl_service.get_all()#

Return all installed services.

CLI Example:

salt '*' service.get_all
salt.modules.openbsdrcctl_service.get_disabled()#

Return what services are available but not enabled to start at boot.

CLI Example:

salt '*' service.get_disabled
salt.modules.openbsdrcctl_service.get_enabled()#

Return what services are set to run on boot.

CLI Example:

salt '*' service.get_enabled
salt.modules.openbsdrcctl_service.missing(name)#

The inverse of service.available. Return True if the named service is not available.

CLI Example:

salt '*' service.missing sshd
salt.modules.openbsdrcctl_service.reload_(name)#

Reload the named service.

CLI Example:

salt '*' service.reload <service name>
salt.modules.openbsdrcctl_service.restart(name)#

Restart the named service.

CLI Example:

salt '*' service.restart <service name>
salt.modules.openbsdrcctl_service.start(name)#

Start the named service.

CLI Example:

salt '*' service.start <service name>
salt.modules.openbsdrcctl_service.status(name, sig=None)#

Return the status for a service, returns a bool whether the service is running.

CLI Example:

salt '*' service.status <service name>
salt.modules.openbsdrcctl_service.stop(name)#

Stop the named service.

CLI Example:

salt '*' service.stop <service name>