wok diff busybox/stuff/zcip @ rev 4583
mirror-tools: add makegraphs
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Dec 10 15:51:45 2009 +0100 (2009-12-10) |
parents | 72fa50265748 |
children |
line diff
1.1 --- a/busybox/stuff/zcip Mon Jun 23 15:15:07 2008 +0000 1.2 +++ b/busybox/stuff/zcip Thu Dec 10 15:51:45 2009 +0100 1.3 @@ -7,16 +7,18 @@ 1.4 # 1.5 . /etc/init.d/rc.functions 1.6 . /etc/daemons.conf 1.7 +. /etc/network.conf 1.8 1.9 NAME=Zcip 1.10 DESC="ZeroConf deamon" 1.11 DAEMON=/sbin/zcip 1.12 OPTIONS=$ZCIP_OPTIONS 1.13 PIDFILE=/var/run/zcip.pid 1.14 +[ -n "$OPTIONS" ] || OPTIONS="$INTERFACE /etc/zcip.script" 1.15 1.16 case "$1" in 1.17 start) 1.18 - if [ -f $PIDFILE ] ; then 1.19 + if active_pidfile $PIDFILE zcip ; then 1.20 echo "$NAME already running." 1.21 exit 1 1.22 fi 1.23 @@ -25,7 +27,7 @@ 1.24 status 1.25 ;; 1.26 stop) 1.27 - if [ ! -f $PIDFILE ] ; then 1.28 + if ! active_pidfile $PIDFILE zcip ; then 1.29 echo "$NAME is not running." 1.30 exit 1 1.31 fi 1.32 @@ -35,7 +37,7 @@ 1.33 status 1.34 ;; 1.35 restart) 1.36 - if [ ! -f $PIDFILE ] ; then 1.37 + if ! active_pidfile $PIDFILE zcip ; then 1.38 echo "$NAME is not running." 1.39 exit 1 1.40 fi