]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
fix ssd usage
authorElan Ruusamäe <glen@delfi.ee>
Sun, 2 Mar 2014 10:18:22 +0000 (10:18 +0000)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 2 Mar 2014 10:18:22 +0000 (10:18 +0000)
lib/functions

index aee3cc1fff66dddf06e08dbcd3f12c5690132895..5956a97ca32d90723421649548ae5c8bd858a8b3 100644 (file)
@@ -758,6 +758,7 @@ daemon() {
                                set -- /usr/bin/setsid "$@"
                        fi
 
+                       prog=$1; shift
                        /sbin/start-stop-daemon -q --start \
                                --nicelevel $nice \
                                ${pidfile:+--pidfile $pidfile} \
@@ -767,7 +768,7 @@ daemon() {
                                ${fork:+--background} \
                                ${waitname:+--name $waitname} \
                                ${SERVICE_DROPCAPS:+--dropcap $SERVICE_DROPCAPS} \
-                               --exec "$1" \
+                               --exec "$prog" \
                                -- "$@"
                else
                        nice -n $nice initlog -c "$prog" 2>&1 </dev/null
This page took 0.079911 seconds and 4 git commands to generate.