diff --git a/site/profiles/templates/ntp/check_ntp.sh.erb b/site/profiles/templates/ntp/check_ntp.sh.erb new file mode 100644 index 0000000..6b940ba --- /dev/null +++ b/site/profiles/templates/ntp/check_ntp.sh.erb @@ -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