wok diff busybox/stuff/dnsd @ rev 4103

Remove zaptel (now dahdi)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Sep 19 17:16:53 2009 +0200 (2009-09-19)
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	Sat Sep 19 17:16:53 2009 +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