From 84a7dd4dfd99727d4efb46ca2f54a958ec3aaedd Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Thu, 21 Oct 2010 23:47:22 +0200 Subject: [PATCH] runit: added RUNOPT support to runit-run --- base/runit/overlay.d/runit/D%sbindir_runit-run.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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