fix: update check script to use pgrep

This commit is contained in:
Ben Vincent 2024-06-18 21:33:38 +10:00
parent 94aed2df9c
commit eb462eb3a3

View File

@ -3,8 +3,5 @@ if [ $# -eq 0 ]; then
echo "No service specified"
exit 1
fi
if systemctl is-active --quiet $1; then
exit 0
else
exit 2
fi
pgrep -x ceph-${1} > /dev/null 2>&1 || exit 1