From d16a46b2113c0e5ec5193308de74ff4baf3ec7e6 Mon Sep 17 00:00:00 2001 From: Deklan Dieterly Date: Thu, 20 Mar 2014 15:17:25 -0600 Subject: [PATCH] Put exec inside script. --- src/deb/init/mon-thresh.conf | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/src/deb/init/mon-thresh.conf b/src/deb/init/mon-thresh.conf index d075079..114d361 100644 --- a/src/deb/init/mon-thresh.conf +++ b/src/deb/init/mon-thresh.conf @@ -6,12 +6,18 @@ start on runlevel [2345] console log respawn - -if [ -r /etc/default/mon-thresh ]; then - . /etc/default/mon-thresh -fi - - setgid thresh setuid thresh -exec /usr/bin/java -Xmx8g -DLOGDIR=${LOGDIR:-/tmp} -cp /opt/mon/mon-thresh.jar com.hpcloud.mon.ThresholdingEngine /etc/mon/mon-thresh-config.yml topology-name + +script + + if [ -r /etc/default/mon-thresh ]; then + . /etc/default/mon-thresh + fi + + exec /usr/bin/java -Xmx8g -DLOGDIR=${LOGDIR:-/tmp} -cp /opt/mon/mon-thresh.jar com.hpcloud.mon.ThresholdingEngine /etc/mon/mon-thresh-config.yml topology-name + +end script + + +