# HG changeset patch # User Pascal Bellard # Date 1236676805 0 # Node ID 217f2bbcfb1b2505ea38f38a40658933b9f7a9f2 # Parent 836def6d28d8df062f1d20ea00ce0e6a38e8520d nscd: improve start script diff -r 836def6d28d8 -r 217f2bbcfb1b nscd/stuff/nscd --- a/nscd/stuff/nscd Tue Mar 10 09:19:09 2009 +0000 +++ b/nscd/stuff/nscd Tue Mar 10 09:20:05 2009 +0000 @@ -19,7 +19,7 @@ case "$1" in start) - if [ -f $PIDFILE ] ; then + if active_pidfile $PIDFILE nscd ; then echo "$NAME already running." exit 1 fi @@ -29,7 +29,7 @@ sleep 2 ;; stop) - if [ ! -f $PIDFILE ] ; then + if ! active_pidfile $PIDFILE nscd ; then echo "$NAME is not running." exit 1 fi @@ -39,7 +39,7 @@ sleep 2 ;; restart) - if [ ! -f $PIDFILE ] ; then + if ! active_pidfile $PIDFILE nscd ; then echo "$NAME is not running." exit 1 fi