diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-04-05 23:20:19 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-04-05 23:20:19 +0000 |
commit | 7a57896994877781b5aae39eac25f7f2c5798265 (patch) | |
tree | 0dd81141e9501235be4427facb2757fabb8059cf /net-misc/ntp/files/ntpd.rc | |
parent | amd64 stable (diff) | |
download | historical-7a57896994877781b5aae39eac25f7f2c5798265.tar.gz historical-7a57896994877781b5aae39eac25f7f2c5798265.tar.bz2 historical-7a57896994877781b5aae39eac25f7f2c5798265.zip |
make init.d script a little more resilient #45229
Diffstat (limited to 'net-misc/ntp/files/ntpd.rc')
-rw-r--r-- | net-misc/ntp/files/ntpd.rc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/net-misc/ntp/files/ntpd.rc b/net-misc/ntp/files/ntpd.rc index a21dbf0f738c..1b72fcd4064e 100644 --- a/net-misc/ntp/files/ntpd.rc +++ b/net-misc/ntp/files/ntpd.rc @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/files/ntpd.rc,v 1.17 2004/02/14 22:58:02 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/files/ntpd.rc,v 1.18 2004/04/05 23:20:19 vapier Exp $ depend() { need net @@ -30,9 +30,7 @@ start() { stop() { ebegin "Stopping ntpd" - if [ -e /var/run/ntpd.pid ] ; then - kill `cat /var/run/ntpd.pid` - rm -f /var/run/ntpd.pid - fi + start-stop-daemon --stop --pidfile /var/run/ntpd.pid eend $? "Failed to stop ntpd" + rm -f /var/run/ntpd.pid } |