SOURCES: nagircbot.init - inline args
glen
glen at pld-linux.org
Mon Nov 20 09:21:52 CET 2006
Author: glen Date: Mon Nov 20 08:21:52 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- inline args
---- Files affected:
SOURCES:
nagircbot.init (1.2 -> 1.3)
---- Diffs:
================================================================
Index: SOURCES/nagircbot.init
diff -u SOURCES/nagircbot.init:1.2 SOURCES/nagircbot.init:1.3
--- SOURCES/nagircbot.init:1.2 Mon Nov 20 09:18:07 2006
+++ SOURCES/nagircbot.init Mon Nov 20 09:21:47 2006
@@ -29,16 +29,16 @@
# Check if the service is already running?
if [ ! -f /var/lock/subsys/nagircbot ]; then
msg_starting "Nagios IRC Bot"
- [ "$STATUSFILE" ] && OTHER="$OTHER -f $STATUSFILE"
- [ "$IRCSERVER" ] && OTHER="$OTHER -s $IRCSERVER"
- [ "$CHANNEL" ] && OTHER="$OTHER -c $CHANNEL"
- [ "$COLORS" == "yes" ] && OTHER="$OTHER -C"
- [ "$NICK" ] && OTHER="$OTHER -n $NICK"
- [ "$SEPARATE_LINES" == "yes" ] && OTHER="$OTHER -m"
- [ "$SET_TOPIC" == "yes" ] && OTHER="$OTHER -t"
- [ "$CHECK_INTERVAL" ] && OTHER="$OTHER -i $CHECK_INTERVAL"
- [ "$SHOW_SOFT" ] && OTHER="$OTHER -H"
- daemon --user $RUNAS nagircbot $OTHER
+ daemon --user $RUNAS nagircbot \
+ ${STATUSFILE:+-f $STATUSFILE} \
+ ${IRCSERVER:+-s $IRCSERVER} \
+ ${CHANNEL:+-c $CHANNEL} \
+ $([ "$COLORS" == "yes" ] && echo -C) \
+ ${NICK:+-n $NICK} \
+ $([ "$SEPARATE_LINES" == "yes" ] && echo -m) \
+ $([ "$SET_TOPIC" == "yes" ] && echo -t) \
+ ${CHECK_INTERVAL:+-i $CHECK_INTERVAL} \
+ ${SHOW_SOFT:+-H}
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/nagircbot
else
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/nagircbot.init?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list