From: wberrier at uclibc.org <wberrier@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/package/ntp
Date: Fri, 14 Nov 2008 14:52:48 -0800 (PST) [thread overview]
Message-ID: <20081114225248.9B86F3C834@busybox.net> (raw)
Author: wberrier
Date: 2008-11-14 14:52:48 -0800 (Fri, 14 Nov 2008)
New Revision: 24048
Log:
ntp.sysvinit: fix 'restart' (don't exit on failed commands with set -e)
Modified:
trunk/buildroot/package/ntp/ntp.sysvinit
Changeset:
Modified: trunk/buildroot/package/ntp/ntp.sysvinit
===================================================================
--- trunk/buildroot/package/ntp/ntp.sysvinit 2008-11-14 22:14:12 UTC (rev 24047)
+++ trunk/buildroot/package/ntp/ntp.sysvinit 2008-11-14 22:52:48 UTC (rev 24048)
@@ -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 @@
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
next reply other threads:[~2008-11-14 22:52 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-14 22:52 wberrier at uclibc.org [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-01-31 18:39 [Buildroot] svn commit: trunk/buildroot/package/ntp jacmet at uclibc.org
2008-11-06 21:11 wberrier at uclibc.org
2008-10-31 1:44 antab at uclibc.org
2007-08-13 19:33 ulf at uclibc.org
2007-07-28 16:41 ulf at uclibc.org
2007-06-27 9:19 aldot at uclibc.org
2007-06-26 15:41 aldot at uclibc.org
2007-06-27 6:26 ` Julien Letessier
2007-06-27 9:17 ` Bernhard Fischer
2007-06-25 18:27 aldot at uclibc.org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081114225248.9B86F3C834@busybox.net \
--to=wberrier@uclibc.org \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox