fix: add missing check script
This commit is contained in:
parent
da3444e49f
commit
76fc6b9fa1
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