commit c45824b8ffd44d650129f9b312764ca144884c27
Author: Elan Ruusamäe <[email protected]>
Date:   Sun Mar 2 10:18:22 2014 +0000

    fix ssd usage

 lib/functions | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/lib/functions b/lib/functions
index aee3cc1..5956a97 100644
--- a/lib/functions
+++ b/lib/functions
@@ -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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/rc-scripts.git/commitdiff/c45824b8ffd44d650129f9b312764ca144884c27

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to