Service


service_action

Trigger an action on a service using tools like systemctl, service, init.d, Windows

Compatible with nodes running Rudder 2.11 or higher.

Parameters

  • service_name: Service
  • action: Action to trigger on the service (start, stop, restart, reload, …)

Classes defined

service_action_${service_name}_{kept, repaired, not_ok, reached}


service_check_running

Check if a service is running using the appropriate method

Compatible with nodes running Rudder 2.11 or higher.

Parameters

  • service_name: Process name

Classes defined

service_check_running_${service_name}_{kept, repaired, not_ok, reached}


service_check_running_ps

Check if a service is running using ps

Compatible with nodes running Rudder 2.11 or higher.

Parameters

  • service_regex: Regular expression used to select a process in ps output

Classes defined

service_check_running_${service_regex}_{kept, repaired, not_ok, reached}


service_check_started_at_boot

Check if a service is set to start at boot using the appropriate method

Compatible with nodes running Rudder 2.11 or higher.

Parameters

  • service_name: Service name (as recognized by systemd, init.d, etc…)

Classes defined

service_check_started_at_boot_${service_name}_{kept, repaired, not_ok, reached}


service_ensure_running

Ensure that a service is running using the appropriate method

Compatible with nodes running Rudder 2.11 or higher.

Parameters

  • service_name: Service name (as recognized by systemd, init.d, etc…)

Classes defined

service_ensure_running_${service_name}_{kept, repaired, not_ok, reached}


service_ensure_running_path

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 2.11 or higher.

Parameters

  • service_name: Service name (as recognized by systemd, init.d, Windows, etc…)
  • service_path: Service with its path, as in the output from ps

Classes defined

service_ensure_running_${service_name}_{kept, repaired, not_ok, reached}


service_ensure_started_at_boot

Force a service to be started at boot

Compatible with nodes running Rudder 2.11 or higher.

Parameters

  • service_name: Service name (as recognized by systemd, init.d, Windows, SRC, SMF, etc…)

Classes defined

service_ensure_started_at_boot_${service_name}_{kept, repaired, not_ok, reached}


service_ensure_stopped

Ensure that a service is stopped using the appropriate method

Compatible with nodes running Rudder 2.11 or higher.

Parameters

  • service_name: Service

Classes defined

service_ensure_stopped_${service_name}_{kept, repaired, not_ok, reached}


service_reload

Reload a service using the appropriate method

Compatible with nodes running Rudder 2.11 or higher.

Parameters

  • service_name: Service

Classes defined

service_reload_${service_name}_{kept, repaired, not_ok, reached}


service_restart

Restart a service using the appropriate method

Compatible with nodes running Rudder 2.11 or higher.

Parameters

  • service_name: Name of the service to restart in systemd, init.d, …

Classes defined

service_restart_${service_name}_{kept, repaired, not_ok, reached}


service_restart_if

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.

Compatible with nodes running Rudder 2.11 or higher.

Parameters

  • service_name: Service
  • trigger_class: class(es) which will trigger the restart of Service "(package_service_installed|service_conf_changed)" by example

Classes defined

service_restart_${service_name}_{kept, repaired, not_ok, reached}


service_start

Start a service using the appropriate method

Compatible with nodes running Rudder 2.11 or higher.

Parameters

  • service_name: Service

Classes defined

service_start_${service_name}_{kept, repaired, not_ok, reached}


service_stop

Stop a service using the appropriate method

Compatible with nodes running Rudder 2.11 or higher.

Parameters

  • service_name: Service

Classes defined

service_stop_${service_name}_{kept, repaired, not_ok, reached}