summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWade Berrier <wberrier@gmail.com>2008-11-14 22:52:48 +0000
committerWade Berrier <wberrier@gmail.com>2008-11-14 22:52:48 +0000
commit2e81da88be7f703a6900d4f06838d6bdb58993e9 (patch)
tree84de65591b06b4bbf8a83ae934af537e771c49ba
parent193508d257c1cc7359c1fecbb0a1574a8b4317f5 (diff)
downloadbuildroot-novena-2e81da88be7f703a6900d4f06838d6bdb58993e9.tar.gz
buildroot-novena-2e81da88be7f703a6900d4f06838d6bdb58993e9.zip
ntp.sysvinit: fix 'restart' (don't exit on failed commands with set -e)
-rwxr-xr-xpackage/ntp/ntp.sysvinit9
1 files changed, 3 insertions, 6 deletions
diff --git a/package/ntp/ntp.sysvinit b/package/ntp/ntp.sysvinit
index 27389269a..38e60b032 100755
--- a/package/ntp/ntp.sysvinit
+++ b/package/ntp/ntp.sysvinit
@@ -3,8 +3,6 @@
# System-V init script for the openntp daemon
#
-set -e
-
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DESC="network time protocol daemon"
NAME=ntpd
@@ -41,11 +39,10 @@ case "$1" in
start-stop-daemon -K -q -n $NAME -s 1
echo "done."
;;
- restart) echo -n "Restarting $DESC: $NAME"
- start-stop-daemon -K -q -n $NAME
+ restart) echo "Restarting $DESC: $NAME"
+ $0 stop
sleep 1
- start-stop-daemon -S -q -x $DAEMON
- echo "."
+ $0 start
;;
*) echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
exit 1