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 + + +