# HG changeset patch # User Pascal Bellard # Date 1236676856 0 # Node ID a0b8d051ad35ee2fd185e11530cf25ea579219c2 # Parent 217f2bbcfb1b2505ea38f38a40658933b9f7a9f2 ntp: improve start script diff -r 217f2bbcfb1b -r a0b8d051ad35 ntp/stuff/ntp --- a/ntp/stuff/ntp Tue Mar 10 09:20:05 2009 +0000 +++ b/ntp/stuff/ntp Tue Mar 10 09:20:56 2009 +0000 @@ -18,7 +18,7 @@ case "$1" in start) - if [ -f $PIDFILE ] ; then + if active_pidfile $PIDFILE ntpd ; then echo "$NAME already running." exit 1 fi @@ -27,7 +27,7 @@ status ;; stop) - if [ ! -f $PIDFILE ] ; then + if ! active_pidfile $PIDFILE ntpd ; then echo "$NAME is not running." exit 1 fi @@ -37,7 +37,7 @@ status ;; restart) - if [ ! -f $PIDFILE ] ; then + if ! active_pidfile $PIDFILE ntpd ; then echo "$NAME is not running." exit 1 fi