[package] kill openntpd harder when stopping, patch from Stefan Monnier
[openwrt/svn-archive/archive.git] / net / openntpd / files / ntpd.init
index 2fc4bb8adf93b4d3720bd8792c951183c291ed9e..31d9f22f03ad28330484e2ff9150e9affc144c77 100644 (file)
@@ -2,11 +2,18 @@
 # Copyright (C) 2006 OpenWrt.org
 
 START=60
+
+boot() {
+       return 0
+}
+
 start() {
        mkdir -p `awk -F: '/^ntp:/{print $6}' /etc/passwd`
+       mkdir -p /var/db/
        /usr/sbin/ntpd -s
 }
 
 stop() {
-       killall ntpd
+       # -1 seems insufficient to kill one of the two underlying processes.
+       killall -9 ntpd
 }