SOURCES: pound.init - switch to start-stop-daemon
glen
glen at pld-linux.org
Mon Jan 21 17:08:21 CET 2008
Author: glen Date: Mon Jan 21 16:08:21 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- switch to start-stop-daemon
---- Files affected:
SOURCES:
pound.init (1.13 -> 1.14)
---- Diffs:
================================================================
Index: SOURCES/pound.init
diff -u SOURCES/pound.init:1.13 SOURCES/pound.init:1.14
--- SOURCES/pound.init:1.13 Tue Jan 15 21:01:11 2008
+++ SOURCES/pound.init Mon Jan 21 17:08:16 2008
@@ -45,11 +45,17 @@
for instance in $POUND_INSTANCES; do
is_up $instance && continue
msg_starting "Pound ($instance)"
- daemon /usr/sbin/pound -v -f /etc/pound/$instance.cfg -p /var/run/pound/$instance.pid
+ PIDFILE=/var/run/pound/$instance.pid
+ start-stop-daemon --start \
+ --exec /usr/sbin/pound \
+ --pidfile $PIDFILE -- -v -f /etc/pound/$instance.cfg -p $PIDFILE
ret=$?
- if [ $RETVAL -eq 0 ]; then
+ if [ $ret -eq 0 ]; then
+ ok
RETVAL=$ret
started=1
+ else
+ failed
fi
done
[ $started = 1 ] && touch /var/lock/subsys/pound
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/pound.init?r1=1.13&r2=1.14&f=u
More information about the pld-cvs-commit
mailing list