Last active
January 15, 2016 05:55
-
-
Save benley/edf69edd60554e49de5c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/debian/aurora-executor.thermos.init b/debian/aurora-executor.thermos.init | |
index 24a59d2..3a62cb9 100755 | |
--- a/debian/aurora-executor.thermos.init | |
+++ b/debian/aurora-executor.thermos.init | |
@@ -35,15 +35,18 @@ fi | |
[ -r /etc/default/thermos ] && . /etc/default/thermos | |
-ARGS="--root=/var/run/thermos | |
+ARGS="--mesos-root=${MESOS_ROOT:-/var/lib/mesos} | |
--port=${OBSERVER_PORT:-1338} | |
- --log_to_disk=NONE | |
- --log_to_stderr=google:INFO" | |
+ --app_daemonize | |
+ --app_pidfile=$PIDFILE | |
+ --log_simple | |
+ --log_dir=/var/log/aurora | |
+ --log_to_disk=google:INFO" | |
case "$1" in | |
start) | |
log_daemon_msg "Starting $DESC" "$NAME" | |
- mkdir -p /var/run/thermos | |
+ mkdir -p /var/log/aurora | |
start_daemon -p $PIDFILE $DAEMON $ARGS | |
log_end_msg $? | |
;; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/debian/aurora-scheduler.init b/debian/aurora-scheduler.init | |
index 59b200f..3d97797 100755 | |
--- a/debian/aurora-scheduler.init | |
+++ b/debian/aurora-scheduler.init | |
@@ -70,7 +70,8 @@ export JAVA_OPTS GLOG_v LIBPROCESS_PORT LIBPROCESS_IP | |
case "$1" in | |
start) | |
log_daemon_msg "Starting $DESC" "$NAME" | |
- start_daemon -p $PIDFILE $DAEMON $ARGS | |
+ start-stop-daemon --start --quiet --oknodo --pidfile $PIDFILE \ | |
+ --background --make-pidfile --exec $DAEMON -- $ARGS | |
log_end_msg $? | |
;; | |
stop) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment