diff options
Diffstat (limited to 'templates/system')
-rw-r--r-- | templates/system/ntp/node.def | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/system/ntp/node.def b/templates/system/ntp/node.def index c5d99724..7a4ddad7 100644 --- a/templates/system/ntp/node.def +++ b/templates/system/ntp/node.def @@ -6,7 +6,7 @@ end: sudo cp -b /tmp/ntp.conf /etc/ntp.conf if grep -q '^server' /etc/ntp.conf then - if /usr/sbin/invoke-rc.d ntp status >/dev/null + if pgrep -f -u ntp /usr/sbin/ntpd > /dev/null then sudo /usr/sbin/invoke-rc.d ntp force-reload else |