Revision e10a3aea doc/examples/ganeti.initd.in

b/doc/examples/ganeti.initd.in
63 63

  
64 64
start_action() {
65 65
    # called as start_action daemon pidfile
66
    log_action_begin_msg "$1"
67
    start-stop-daemon --start --quiet --exec "$1" --pidfile "$2"
66
    local daemon="$1"; shift
67
    local pidfile="$2"; shift
68
    log_action_begin_msg "$daemon"
69
    start-stop-daemon --start --quiet --exec "$daemon" --pidfile "$pidfile" \
70
        -- "$@"
68 71
    check_exitcode $?
69 72
}
70 73

  

Also available in: Unified diff