Browse Source

runit: added RUNOPT support to runit-run

user/chris/test/early-mdev
Alejandro Mery 14 years ago
parent
commit
84a7dd4dfd
  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##*/}"
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

Loading…
Cancel
Save