wok-next diff busybox/stuff/dnsd @ rev 4504

linux: add floppy boot support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Nov 22 12:46:40 2009 +0100 (2009-11-22)
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 Nov 22 12:46:40 2009 +0100
     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