summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--50-ntpdate2
1 files changed, 1 insertions, 1 deletions
diff --git a/50-ntpdate b/50-ntpdate
index 5cb9850..4e7de9e 100644
--- a/50-ntpdate
+++ b/50-ntpdate
@@ -4,7 +4,7 @@ case "${reason}" in
BOUND|REBIND|REBOOT|RENEW|TIMEOUT|STATIC)
# sync time as soon as connection is up
# this reads nameserver from /etc/ntp.conf
- if ! pidof ntpd >/dev/null; then
+ if ! pgrep -x ntpd >/dev/null; then
ntpd --quit --panicgate
fi
# alternatively use ntpdate and give hostname