puppet-prod/site/profiles/templates/ntp/check_ntp.sh.erb

9 lines
142 B
Plaintext

#!/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