[projects/rc-scripts] daemon ssd mode: keep consistent "$@"
glen
glen at pld-linux.org
Sun Mar 2 11:06:36 CET 2014
commit b27454e350ca1c7427075085a346dc5914cb9fd8
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Mar 2 10:05:01 2014 +0000
daemon ssd mode: keep consistent "$@"
lib/functions | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/lib/functions b/lib/functions
index e75f61d..de386b9 100644
--- a/lib/functions
+++ b/lib/functions
@@ -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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/rc-scripts.git/commitdiff/9ecaca50bfd26e55c7bae36b9c412c05e182cfdb
More information about the pld-cvs-commit
mailing list