Example persist mode Shutdown Guard
The included example persistent Shutdown Guard script monitors an IP address for availability, and disables shutdowns when it's not responding, enabling them again when it returns.
Please note that the example script is pinging a specific IP address that may not exist on your network, and may result in terminusd disabling shutdowns/reboots on your system. You can use terminusctl to enable/disable both the guard and shutdowns if this occurs.
[main]
shutdown_guard_enabled = true
shutdown_guard_type = persist
shutdown_guard_command = /usr/libexec/terminusd/examples/example-persistent-shutdown-guard.sh
shutdown_guard_run_as_user = root
shutdown_guard_run_as_group = root