ntpd: restart instead of killall and start
authorPeter Wagner <tripolar@gmx.at>
Mon, 6 Mar 2017 08:44:57 +0000 (09:44 +0100)
committerPeter Wagner <tripolar@gmx.at>
Mon, 6 Mar 2017 08:44:57 +0000 (09:44 +0100)
Signed-off-by: Peter Wagner <tripolar@gmx.at>
net/ntpd/Makefile
net/ntpd/files/ntpd.hotplug

index f1e57ad4ffa74ed40015651b749ba5d4e7a00131..98db1ae6f3998e9085cbb63926ed1c8af14c688b 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ntp
 PKG_VERSION:=4.2.8p9
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/
index 36cbe15976aece6106d15ce40ecd3375b6610827..67a4d6aaa35190ee2f0911d03a3673b0922a9e22 100644 (file)
@@ -5,7 +5,6 @@ COMMAND=/etc/init.d/$NAME
 
 [ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
        $COMMAND enabled && {
-               killall ntpd
-               $COMMAND start
-        } &
+               $COMMAND restart
+        }
 }