SOURCES: protolog.init - fix startup exit codes
glen
glen at pld-linux.org
Sun Mar 12 22:56:42 CET 2006
Author: glen Date: Sun Mar 12 21:56:42 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- fix startup exit codes
---- Files affected:
SOURCES:
protolog.init (1.7 -> 1.8)
---- Diffs:
================================================================
Index: SOURCES/protolog.init
diff -u SOURCES/protolog.init:1.7 SOURCES/protolog.init:1.8
--- SOURCES/protolog.init:1.7 Sun Mar 12 22:50:11 2006
+++ SOURCES/protolog.init Sun Mar 12 22:56:37 2006
@@ -35,14 +35,17 @@
msg_starting "protolog TCP daemon"
daemon plogtcp $PLOGTCP
RETVAL=$?
+
msg_starting "protolog UDP daemon"
daemon plogudp $PLOGUDP
RET=$?
- [ $RETVAL -eq 0 ] && RETVAL=$RET
+ [ $RET -ge 0 ] && RETVAL=$RET
+
msg_starting "protolog ICMP daemon"
daemon plogicmp $PLOGICMP
RET=$?
- [ $RETVAL -eq 0 ] && RETVAL=$RET
+ [ $RET -ge 0 ] && RETVAL=$RET
+
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/protolog
else
msg_already_running Protolog
@@ -52,10 +55,13 @@
if [ -f /var/lock/subsys/protolog ]; then
msg_stopping "protolog TCP daemon"
killproc plogtcp
+
msg_stopping "protolog UDP daemon"
killproc plogudp
+
msg_stopping "protolog ICMP daemon"
killproc plogicmp
+
rm -f /var/lock/subsys/protolog
else
msg_not_running Protolog
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/protolog.init?r1=1.7&r2=1.8&f=u
More information about the pld-cvs-commit
mailing list