wok-6.x rev 3752
perdition: fix init.d script
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 23 20:44:21 2009 +0200 (2009-07-23) |
parents | 1c30b062cd8e |
children | d5c5a2410a9d |
files | perdition/stuff/etc/init.d/perdition |
line diff
1.1 --- a/perdition/stuff/etc/init.d/perdition Thu Jul 23 14:33:46 2009 +0000 1.2 +++ b/perdition/stuff/etc/init.d/perdition Thu Jul 23 20:44:21 2009 +0200 1.3 @@ -23,7 +23,7 @@ 1.4 [ -s /etc/perdition/perdition.$i.conf ] || continue 1.5 if [ -f $PIDFILE.$i/perdition.$i.pid ] ; then 1.6 echo "$NAME ($i) already running." 1.7 - exit 1 1.8 + continue 1.9 fi 1.10 echo -n "Starting $DESC: $NAME ($i)... " 1.11 $DAEMON.$i -f /etc/perdition/perdition.$i.conf $OPTIONS \ 1.12 @@ -36,7 +36,7 @@ 1.13 [ -s /etc/perdition/perdition.$i.conf ] || continue 1.14 if [ ! -f $PIDFILE.$i/perdition.$i.pid ] ; then 1.15 echo "$NAME ($i) is not running." 1.16 - exit 1 1.17 + continue 1.18 fi 1.19 echo -n "Stopping $DESC: $NAME ($i)... " 1.20 kill `cat $PIDFILE.$i/perdition.$i.pid` 1.21 @@ -48,7 +48,7 @@ 1.22 [ -s /etc/perdition/perdition.$i.conf ] || continue 1.23 if [ ! -f $PIDFILE.$i/perdition.$i.pid ] ; then 1.24 echo "$NAME ($i) is not running." 1.25 - exit 1 1.26 + continue 1.27 fi 1.28 echo -n "Restarting $DESC: $NAME ($i)... " 1.29 kill `cat $PIDFILE.$i/perdition.$i.pid`