salt.modules.openbsdrcctl_service.py
The rcctl service module for OpenBSD
-
Return True if the named service is available.
CLI Example:
salt '*' service.available sshd
salt.modules.openbsdrcctl_service.available(name)
-
Disable the named service to not start at boot.
CLI Example:
salt '*' service.disable <service name>
salt.modules.openbsdrcctl_service.disable(name, **kwargs)
-
Return True if the named service is disabled at boot, False otherwise.
CLI Example:
salt '*' service.disabled <service name>
salt.modules.openbsdrcctl_service.disabled(name)
-
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.enable(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.enabled(name, **kwargs)
-
Return all installed services.
CLI Example:
salt '*' service.get_all
salt.modules.openbsdrcctl_service.get_all()
-
Return what services are available but not enabled to start at boot.
CLI Example:
salt '*' service.get_disabled
salt.modules.openbsdrcctl_service.get_disabled()
-
Return what services are set to run on boot.
CLI Example:
salt '*' service.get_enabled
salt.modules.openbsdrcctl_service.get_enabled()
-
The inverse of service.available. Return True if the named service is not available.
CLI Example:
salt '*' service.missing sshd
salt.modules.openbsdrcctl_service.missing(name)
-
Reload the named service.
CLI Example:
salt '*' service.reload <service name>
salt.modules.openbsdrcctl_service.reload_(name)
-
Restart the named service.
CLI Example:
salt '*' service.restart <service name>
salt.modules.openbsdrcctl_service.restart(name)
-
Start the named service.
CLI Example:
salt '*' service.start <service name>
salt.modules.openbsdrcctl_service.start(name)
-
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.status(name, sig=None)
-
Stop the named service.
CLI Example:
salt '*' service.stop <service name>
salt.modules.openbsdrcctl_service.stop(name)
© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/modules/all/salt.modules.openbsdrcctl_service.html