Put exec inside script.

This commit is contained in:
Deklan Dieterly 2014-03-20 15:17:25 -06:00
parent 57869467b5
commit d16a46b211

View File

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