From 76fc6b9fa13294f27ddcb4e00d1fdc6dafcb47d1 Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Sun, 2 Jun 2024 19:32:02 +1000 Subject: [PATCH] fix: add missing check script --- site/profiles/templates/ntp/check_ntp.sh.erb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 site/profiles/templates/ntp/check_ntp.sh.erb 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 -- 2.47.3