Skip to content
This repository has been archived by the owner on Sep 17, 2021. It is now read-only.

Example integration of mesos-init-wrapper #1

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
4 changes: 2 additions & 2 deletions src/mesos-masterd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ done
PRGDIR=`dirname "$PRG"`

# Establish which Command we are going to run.
mesosd=`which mesos-master`
mesos_wrapper="`which mesos-init-wrapper`"
if [ ! -n "$mesosd" ]; then
echo $"ERROR: It appears that the file $mesosd is unreachable or unexecutable."
exit -1
Expand All @@ -73,7 +73,7 @@ function start()
echo -n $"Starting Mesos Master ($mesosd):"

if [[ $do_daemonize -eq 1 ]]; then
daemonize -a -e "$OUT_FILE" -o "$OUT_FILE" -p "$PIDFILE" -l "$LOCKFILE" -u "$MESOS_USER" $NUMACTL $mesosd $OPTIONS
daemonize -a -e "$OUT_FILE" -o "$OUT_FILE" -p "$PIDFILE" -l "$LOCKFILE" -u "$MESOS_USER" $NUMACTL "$mesos_wrapper" master $OPTIONS

RETVAL=$?
if [ $RETVAL -eq 0 ]; then
Expand Down