florian 0a57a8a116 [package] kill openntpd harder when stopping, patch from Stefan Monnier
git-svn-id: svn://svn.openwrt.org/openwrt/packages@20317 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-20 12:12:59 +00:00

20 lines
292 B
Bash

#!/bin/sh /etc/rc.common
# 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() {
# -1 seems insufficient to kill one of the two underlying processes.
killall -9 ntpd
}