systemd-unit - systemd unit check
Monitors a systemd unit status, via dbus. You may want the unix_service monitor instead if you just want to ensure a service is running.
- name
- Type
string
- Required
true
the name of the unit to monitor
- load_states
- Type
comma-separated list of string
- Required
false
- Default
loaded
desired load states for the unit
- active_states
- Type
comma-separated list of string
- Required
false
- Default
active,reloading
desired active states for the unit
- sub_states
- Type
comma-separated list of string
- Required
false
- Default
none
desired sub states for the service