dist: stop scylla-jmx when scylla-server stopped, don't respawn

Signed-off-by: Takuya ASADA <syuu@scylladb.com>
Signed-off-by: Pekka Enberg <penberg@scylladb.com>
This commit is contained in:
Takuya ASADA 2015-10-30 01:13:35 +09:00 committed by Pekka Enberg
parent c596a9e462
commit 2e11cb5471

View File

@ -4,19 +4,15 @@
description "ScyllaDB jmx" description "ScyllaDB jmx"
start on starting scylla-server start on started scylla-server
stop on runlevel [!2345] stop on stopping scylla-server
respawn
respawn limit 10 5
umask 022 umask 022
expect fork
console log console log
script script
. /etc/default/scylla-jmx . /etc/default/scylla-jmx
export JMX_LOCAL_PORT export JMX_LOCAL_PORT
/usr/lib/scylla/jmx/jmx_run exec /usr/lib/scylla/jmx/jmx_run
end script end script