Commit Graph

1 Commits

Author SHA1 Message Date
bdb9ee05e7
Add check-systemctl-service.sh script to check if a systemd unit is active.
This commit adds the check-systemctl-service.sh script which can be used to check if a systemd unit is active. The script takes in a unit file as an argument and has an optional flag to check for running within the current user. It returns exit codes based on whether the service is active, inactive or unknown.
2023-05-26 14:33:11 +02:00