Merge pull request 'fix: update check script to use pgrep' (#41) from neoloc/ceph_facts into develop
Reviewed-on: https://git.query.consul/unkinben/puppet-prod/pulls/41
This commit is contained in:
commit
feddc4a3fb
@ -3,8 +3,5 @@ if [ $# -eq 0 ]; then
|
|||||||
echo "No service specified"
|
echo "No service specified"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if systemctl is-active --quiet $1; then
|
|
||||||
exit 0
|
pgrep -x ceph-${1} > /dev/null 2>&1 || exit 1
|
||||||
else
|
|
||||||
exit 2
|
|
||||||
fi
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user