From 4672cd360f00880c38e91a3c2bdce84bcd876cec Mon Sep 17 00:00:00 2001 From: Amnon Heiman Date: Wed, 29 Jun 2016 10:11:59 +0300 Subject: [PATCH] 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 Message-Id: <1467184319-3395-1-git-send-email-amnon@scylladb.com> --- dist/common/systemd/scylla-jmx.service.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dist/common/systemd/scylla-jmx.service.in b/dist/common/systemd/scylla-jmx.service.in index a9a3c2b..07d1d2e 100644 --- a/dist/common/systemd/scylla-jmx.service.in +++ b/dist/common/systemd/scylla-jmx.service.in @@ -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