Table of Contents
- service_action
- service_check_disabled_at_boot
- service_check_running
- service_check_running_ps
- service_check_started_at_boot
- service_ensure_disabled_at_boot
- service_ensure_running
- service_ensure_running_path
- service_ensure_started_at_boot
- service_ensure_stopped
- service_reload
- service_restart
- service_restart_if
- service_start
- service_stop
Trigger an action on a service using tools like systemctl, service, init.d, Windows…
Compatible with nodes running Rudder 3.1 or higher.
- service_name: Service
- action: Action to trigger on the service (start, stop, restart, reload, …)
service_action_${service_name}_{kept, repaired, not_ok, reached}
Check if a service is set to not start at boot using the appropriate method
Compatible with nodes running Rudder 3.1 or higher.
- service_name: Service name (as recognized by systemd, init.d, etc…)
service_check_disabled_at_boot_${service_name}_{kept, repaired, not_ok, reached}
Check if a service is running using the appropriate method
Compatible with nodes running Rudder 3.1 or higher.
- service_name: Process name
service_check_running_${service_name}_{kept, repaired, not_ok, reached}
Check if a service is running using ps
Compatible with nodes running Rudder 3.1 or higher.
- service_regex: Regular expression used to select a process in ps output
service_check_running_${service_regex}_{kept, repaired, not_ok, reached}
Check if a service is set to start at boot using the appropriate method
Compatible with nodes running Rudder 3.1 or higher.
- service_name: Service name (as recognized by systemd, init.d, etc…)
service_check_started_at_boot_${service_name}_{kept, repaired, not_ok, reached}
Force a service not to be enabled at boot
Compatible with nodes running Rudder 3.1 or higher.
- service_name: Service name (as recognized by systemd, init.d, etc…)
service_ensure_disabled_at_boot_${service_name}_{kept, repaired, not_ok, reached}
Ensure that a service is running using the appropriate method
Compatible with nodes running Rudder 3.1 or higher.
- service_name: Service name (as recognized by systemd, init.d, etc…)
service_ensure_running_${service_name}_{kept, repaired, not_ok, reached}
Ensure that a service is running using the appropriate method, specifying the path of the service in the ps output, or using Windows task manager
Compatible with nodes running Rudder 3.1 or higher.
- service_name: Service name (as recognized by systemd, init.d, Windows, etc…)
- service_path: Service with its path, as in the output from ps
service_ensure_running_${service_name}_{kept, repaired, not_ok, reached}
Force a service to be started at boot
Compatible with nodes running Rudder 3.1 or higher.
- service_name: Service name (as recognized by systemd, init.d, Windows, SRC, SMF, etc…)
service_ensure_started_at_boot_${service_name}_{kept, repaired, not_ok, reached}
Ensure that a service is stopped using the appropriate method
Compatible with nodes running Rudder 3.1 or higher.
- service_name: Service
service_ensure_stopped_${service_name}_{kept, repaired, not_ok, reached}
Reload a service using the appropriate method
Compatible with nodes running Rudder 3.1 or higher.
- service_name: Service
service_reload_${service_name}_{kept, repaired, not_ok, reached}
Restart a service using the appropriate method
Compatible with nodes running Rudder 3.1 or higher.
- service_name: Name of the service to restart in systemd, init.d, …
service_restart_${service_name}_{kept, repaired, not_ok, reached}
Restart a service using the appropriate method if the specified class is true, otherwise it is considered as not required and success classes are returned.
WARNING: This generic method is deprecated. Use a condition with service_restart instead.
Compatible with nodes running Rudder 3.1 or higher.
- service_name: Service
- trigger_class: class(es) which will trigger the restart of Service "(package_service_installed|service_conf_changed)" by example
service_restart_${service_name}_{kept, repaired, not_ok, reached}
Start a service using the appropriate method
Compatible with nodes running Rudder 3.1 or higher.
- service_name: Service
service_start_${service_name}_{kept, repaired, not_ok, reached}