Skip to content

Commit

Permalink
Use eval for start_daemon
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Jan 16, 2014
1 parent 1ad9d3e commit b6abf2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion debian/freeradius.init
Expand Up @@ -50,7 +50,8 @@ case "$1" in
start)
log_daemon_msg "Starting $DESCR" "$PROG"

start_daemon -p "$PIDFILE" "$PROGRAM" $FREERADIUS_OPTIONS || ret=$?
# eval allows quoted arguments (config directories for example) to be passed in $FREERADIUS_OPTIONS
eval "start_daemon -p '$PIDFILE' '$PROGRAM' $FREERADIUS_OPTIONS" || ret=$?
log_end_msg $ret
;;

Expand Down

0 comments on commit b6abf2f

Please sign in to comment.