From 07a7bbfbd36b8d3479ef91713e425a453f49cdb5 Mon Sep 17 00:00:00 2001 From: Jason Dusek Date: Thu, 3 Apr 2014 21:36:22 +0000 Subject: [PATCH] Example integration of mesos-init-wrapper This would provide support for the `/etc/(mesos-slave|mesos-master)` config directories. We might have to adjust that wrapper, to support the additional CLI options in `/etc/mesos/(mesos-slave|mesos-master)` --- src/mesos-masterd.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesos-masterd.sh b/src/mesos-masterd.sh index d1c7b64..671a7e2 100755 --- a/src/mesos-masterd.sh +++ b/src/mesos-masterd.sh @@ -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 @@ -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