]> git.pld-linux.org Git - packages/pound.git/commitdiff
- switch to start-stop-daemon
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 21 Jan 2008 16:08:16 +0000 (16:08 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    pound.init -> 1.14

pound.init

index fb4135a5bd5d97dd5220a2cf3fe7886d53a376c3..d57f10e596faaacf898b4539d3ac3425653e610f 100644 (file)
@@ -45,11 +45,17 @@ start() {
                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
This page took 0.342536 seconds and 4 git commands to generate.