Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

allow additional arguments to be passed on the command line for one-off usage #63

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions mesos-init-wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -o errexit -o nounset -o pipefail
function -h {
cat <<USAGE
USAGE: mesos-init-wrapper (master|slave)
USAGE: mesos-init-wrapper (master|slave) [additional arguments]

Run Mesos in master or slave mode, loading environment files, setting up
logging and loading config parameters as appropriate.
Expand Down Expand Up @@ -112,9 +112,9 @@ function slave {
clean_args+=( "${i}" )
fi
done
/usr/sbin/mesos-slave "${clean_args[@]}"
/usr/sbin/mesos-slave "${clean_args[@]}" "$@"
else
logged /usr/sbin/mesos-slave "${args[@]:-}"
logged /usr/sbin/mesos-slave "${args[@]:-}" "$@"
fi
}

Expand Down Expand Up @@ -153,9 +153,9 @@ function master {
clean_args+=( "${i}" )
fi
done
/usr/sbin/mesos-master "${clean_args[@]}"
/usr/sbin/mesos-master "${clean_args[@]}" "$@"
else
logged /usr/sbin/mesos-master "${args[@]:-}"
logged /usr/sbin/mesos-master "${args[@]:-}" "$@"
fi
}

Expand Down