Put exec inside script.
This commit is contained in:
parent
57869467b5
commit
d16a46b211
@ -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
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user