Reword the message on oneshot but not running

This commit is contained in:
Salt 2021-08-18 19:40:11 -05:00
parent f877fac512
commit 426f96839d
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ else
3)
# In this case, the unit is not running. Whether this is an issue depends on the type of service
if systemctl cat backup | grep -ie '^Type=' | grep -ie 'oneshot' > /dev/null 2>&1; then
echo "UNIT OK: $service is not running"
echo "UNIT OK: $service is type oneshot and not running"
exit 0
else
echo "UNIT CRITICAL: $service is not running"