]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
daemon ssd mode: keep consistent "$@"
authorElan Ruusamäe <glen@delfi.ee>
Sun, 2 Mar 2014 10:05:01 +0000 (10:05 +0000)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 2 Mar 2014 10:05:01 +0000 (10:05 +0000)
lib/functions

index e75f61d25bc98c50ac03ba341698848bd966452f..de386b98037551cd77f6252228396256bc340cec 100644 (file)
@@ -750,6 +750,8 @@ daemon() {
                                done
                                IFS=$o
                        fi
+                       set -- "$prog" "$@"
+
                        /sbin/start-stop-daemon -q --start \
                                --nicelevel $nice \
                                ${pidfile:+--pidfile $pidfile} \
@@ -759,8 +761,8 @@ daemon() {
                                ${fork:+--background} \
                                ${waitname:+--name $waitname} \
                                ${SERVICE_DROPCAPS:+--dropcap $SERVICE_DROPCAPS} \
-                               --exec "$prog" \
-                               -- ${1:+"$@"}
+                               --exec "$1" \
+                               -- "$@"
                else
                        nice -n $nice initlog -c "$prog" 2>&1 </dev/null
                fi
This page took 0.062335 seconds and 4 git commands to generate.