Browse Source

runit: added RUNOPT support to runit-run

user/amery/0.1.0/test
Alejandro Mery 15 years ago
parent
commit
e2fba75acb
  1. 4
      base/runit/overlay.d/runit/D%sbindir_runit-run.sh

4
base/runit/overlay.d/runit/D%sbindir_runit-run.sh

@ -23,11 +23,13 @@ set -e
SVID="${PWD##*/}" SVID="${PWD##*/}"
RUN= RUN=
RUNOPT=
[ -z "$SCRIPT" ] || . "$PROGNAME" [ -z "$SCRIPT" ] || . "$PROGNAME"
if [ -n "$RUN" ]; then if [ -n "$RUN" ]; then
exec "$RUN" [ -z "$RUNOPT" ] || eval "set -- $RUNOPT $*"
exec "$RUN" "$@"
else else
echo "$PROGNAME: no daemon to RUN defined" >&2 echo "$PROGNAME: no daemon to RUN defined" >&2
exit 1 exit 1

Loading…
Cancel
Save