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:
Ben Vincent 2024-06-02 19:32:37 +10:00
commit c000244c5a

View 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