wok-6.x rev 1218
perdition: fix stop & restart
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Aug 10 07:47:35 2008 +0000 (2008-08-10) |
parents | 805d63a583d5 |
children | dc8fe8a0f6df |
files | perdition/stuff/etc/init.d/perdition |
line diff
1.1 --- a/perdition/stuff/etc/init.d/perdition Sun Aug 10 07:42:07 2008 +0200 1.2 +++ b/perdition/stuff/etc/init.d/perdition Sun Aug 10 07:47:35 2008 +0000 1.3 @@ -34,7 +34,7 @@ 1.4 stop) 1.5 for i in $PROTOCOLS; do 1.6 [ -s /etc/perdition/perdition.$i.conf ] || continue 1.7 - if [ -f $PIDFILE.$i/perdition.$i.pid ] ; then 1.8 + if [ ! -f $PIDFILE.$i/perdition.$i.pid ] ; then 1.9 echo "$NAME ($i) is not running." 1.10 exit 1 1.11 fi 1.12 @@ -46,7 +46,7 @@ 1.13 restart) 1.14 for i in $PROTOCOLS; do 1.15 [ -s /etc/perdition/perdition.$i.conf ] || continue 1.16 - if [ -f $PIDFILE.$i/perdition.$i.pid ] ; then 1.17 + if [ ! -f $PIDFILE.$i/perdition.$i.pid ] ; then 1.18 echo "$NAME ($i) is not running." 1.19 exit 1 1.20 fi