Merge pull request 'fix: add missing check script' (#17) from neoloc/ntp_consul_checkscript into develop
Reviewed-on: https://git.query.consul/unkinben/puppet-prod/pulls/17
This commit is contained in:
commit
c000244c5a
8
site/profiles/templates/ntp/check_ntp.sh.erb
Normal file
8
site/profiles/templates/ntp/check_ntp.sh.erb
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#!/usr/bin/bash
|
||||||
|
|
||||||
|
# Check if ntpd or chronyd is running
|
||||||
|
if pgrep ntpd > /dev/null || pgrep chronyd > /dev/null; then
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
exit 2
|
||||||
|
fi
|
||||||
Loading…
Reference in New Issue
Block a user