wok-4.x rev 1216

perdition: fix pidfile
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 09 21:24:33 2008 +0000 (2008-08-09)
parents 8450e8bc287a
children 805d63a583d5
files perdition/stuff/etc/init.d/perdition
line diff
     1.1 --- a/perdition/stuff/etc/init.d/perdition	Sat Aug 09 21:05:27 2008 +0000
     1.2 +++ b/perdition/stuff/etc/init.d/perdition	Sat Aug 09 21:24:33 2008 +0000
     1.3 @@ -39,7 +39,7 @@
     1.4          exit 1
     1.5        fi
     1.6        echo -n "Stopping $DESC: $NAME ($i)... "
     1.7 -      kill `cat $PIDFILE.$i.pid`
     1.8 +      kill `cat $PIDFILE.$i/perdition.$i.pid`
     1.9        status
    1.10      done
    1.11      ;;
    1.12 @@ -51,7 +51,7 @@
    1.13          exit 1
    1.14        fi
    1.15        echo -n "Restarting $DESC: $NAME ($i)... "
    1.16 -      kill `cat $PIDFILE.$i.pid`
    1.17 +      kill `cat $PIDFILE.$i/perdition.$i.pid`
    1.18        sleep 2
    1.19        $DAEMON.$i -f /etc/perdition/perdition.$i.conf $OPTIONS \
    1.20  		--pid_file $PIDFILE.$i/perdition.$i.pid
    1.21 @@ -61,7 +61,8 @@
    1.22    reload)
    1.23      for i in $PROTOCOLS; do
    1.24        [ -s /etc/perdition/perdition.$i.conf ] || continue
    1.25 -      [ -f $PIDFILE.$i/perdition.$i.pid ] && kill -1 `cat $PIDFILE.$i.pid`
    1.26 +      [ -f $PIDFILE.$i/perdition.$i.pid ] && \
    1.27 +		kill -1 `cat $PIDFILE.$i/perdition.$i.pid`
    1.28        status
    1.29      done
    1.30      ;;