Commit e10a3aea authored by Iustin Pop's avatar Iustin Pop
Browse files

Small improvement to the init.d example file

The start_action function is changed so that it can be called with
arguments - this could be used to parse a defaults file, etc.

Reviewed-by: imsnah
parent 8b2d1013
......@@ -63,8 +63,11 @@ check_exitcode() {
start_action() {
# called as start_action daemon pidfile
log_action_begin_msg "$1"
start-stop-daemon --start --quiet --exec "$1" --pidfile "$2"
local daemon="$1"; shift
local pidfile="$2"; shift
log_action_begin_msg "$daemon"
start-stop-daemon --start --quiet --exec "$daemon" --pidfile "$pidfile" \
-- "$@"
check_exitcode $?
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment