wok-current diff busybox/stuff/dnsd @ rev 5095
Up: xorg-xf86-video-intel; update DEPENDS
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Mon Mar 15 18:17:01 2010 +0000 (2010-03-15) |
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 Mon Mar 15 18:17:01 2010 +0000 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