wok-6.x diff busybox/stuff/dnsd @ rev 5195

slitaz-doc: fix version for 3.0
author Christophe Lincoln <pankso@slitaz.org>
date Sun Mar 28 17:16:33 2010 +0200 (2010-03-28)
parents 73595cae4a67
children
line diff
     1.1 --- a/busybox/stuff/dnsd	Sat Apr 19 19:31:00 2008 +0000
     1.2 +++ b/busybox/stuff/dnsd	Sun Mar 28 17:16:33 2010 +0200
     1.3 @@ -16,16 +16,16 @@
     1.4  
     1.5  case "$1" in
     1.6    start)
     1.7 -    if [ -f $PIDFILE ] ; then
     1.8 +    if active_pidfile $PIDFILE dnsd ; then
     1.9        echo "$NAME already running."
    1.10        exit 1
    1.11      fi
    1.12      echo -n "Starting $DESC: $NAME... "
    1.13 -    $DAEMON $OPTIONS 
    1.14 +    $DAEMON $OPTIONS && echo `pidof $DAEMON` > $PIDFILE
    1.15      status
    1.16      ;;
    1.17    stop)
    1.18 -    if [ ! -f $PIDFILE ] ; then
    1.19 +    if ! active_pidfile $PIDFILE dnsd ; then
    1.20        echo "$NAME is not running."
    1.21        exit 1
    1.22      fi
    1.23 @@ -35,7 +35,7 @@
    1.24      status
    1.25      ;;
    1.26    restart)
    1.27 -    if [ ! -f $PIDFILE ] ; then
    1.28 +    if ! active_pidfile $PIDFILE dnsd ; then
    1.29        echo "$NAME is not running."
    1.30        exit 1
    1.31      fi