salt.modules.rh_service

Service support for classic Red Hat type systems. This interface uses the service command (so it is compatible with upstart systems) and the chkconfig command.

Members

disable

salt.modules.rh_service.disable(name)

Disable the named service to start at boot

CLI Example:

salt '*' service.disable <service name>

disabled

salt.modules.rh_service.disabled(name)

Check to see if the named service is disabled to start on boot

CLI Example:

salt '*' service.disabled <service name>

enable

salt.modules.rh_service.enable(name)

Enable the named service to start at boot

CLI Example:

salt '*' service.enable <service name>

enabled

salt.modules.rh_service.enabled(name)

Check to see if the named service is enabled to start on boot

CLI Example:

salt '*' service.enabled <service name>

get_all

salt.modules.rh_service.get_all()

Return all installed services

CLI Example:

salt '*' service.get_all

get_disabled

salt.modules.rh_service.get_disabled()

Return the disabled services

CLI Example:

salt '*' service.get_disabled

get_enabled

salt.modules.rh_service.get_enabled()

Return the enabled services

CLI Example:

salt '*' service.get_enabled

restart

salt.modules.rh_service.restart(name)

Restart the named service

CLI Example:

salt '*' service.restart <service name>

start

salt.modules.rh_service.start(name)

Start the specified service

CLI Example:

salt '*' service.start <service name>

status

salt.modules.rh_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>

stop

salt.modules.rh_service.stop(name)

Stop the specified service

CLI Example:

salt '*' service.stop <service name>

Parent topic

Table Of Contents

Previous topic

salt.modules.rh_ip

Next topic

salt.modules.rvm