diff --git a/base/runit/overlay.d/runit/D%sbindir_runit-run.sh b/base/runit/overlay.d/runit/D%sbindir_runit-run.sh index 6cefea3e2..ad124389e 100644 --- a/base/runit/overlay.d/runit/D%sbindir_runit-run.sh +++ b/base/runit/overlay.d/runit/D%sbindir_runit-run.sh @@ -23,11 +23,13 @@ set -e SVID="${PWD##*/}" RUN= +RUNOPT= [ -z "$SCRIPT" ] || . "$PROGNAME" if [ -n "$RUN" ]; then - exec "$RUN" + [ -z "$RUNOPT" ] || eval "set -- $RUNOPT $*" + exec "$RUN" "$@" else echo "$PROGNAME: no daemon to RUN defined" >&2 exit 1