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
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 $?
}