systemd
— systemd units and services
The systemd
check searches the list of running systemd units and services, and asserts that units are running, stopped, or missing.
Examples
Check that a service is running:
[[systemd]] service = 'sshd'
Check that a service is stopped:
[[systemd]] service = 'httpd' state = 'stopped'
List of parameters
parameter | structure | description |
---|---|---|
service | string | Name of the systemd service. |
state | string | State of the systemd service. This can be 'running' , 'stopped' , or 'missing' . |