scylla-jmx.service.in: Depend on scylla-server

The correct dependency between the jmx and the scylla-server is:
The scylla-jmx should not run if the scylla-server is not running, it
should shutdown when the scylla-server shuts down.

Starting the scylla-jmx should not start the scylla-server, instead, if
the scylla-server is not running it should fail to start.

This patch changes the setup to do so.

Signed-off-by: Amnon Heiman <amnon@scylladb.com>
Message-Id: <1467184319-3395-1-git-send-email-amnon@scylladb.com>
This commit is contained in:
Amnon Heiman 2016-06-29 10:11:59 +03:00 committed by Avi Kivity
parent 36ae2fcfd7
commit 4672cd360f

View File

@ -1,7 +1,8 @@
[Unit]
Description=Scylla JMX
Requires=scylla-server.service
Requisite=scylla-server.service
After=scylla-server.service
BindsTo=scylla-server.service
[Service]
Type=simple