services: Make scylla-jmx service depends on scylla-server

The scylla-jmx no longer shutdown itself. A better setup would be that
the it would be started when the scylla-server starts and that it would
shutdown when the scylla-server shutdown.

This patch do the scylla-server part of the change.

The scylla-server definition would Want the scylla-jmx.service so there
is no need to enable the scylla-jmx.service.

A patch to the scylla-jmx would cause it to shutdown when the scylla-jmx
shutsdown.

Signed-off-by: Amnon Heiman <amnon@scylladb.com>
Message-Id: <1467184502-4358-1-git-send-email-amnon@scylladb.com>
This commit is contained in:
Amnon Heiman
2016-06-29 10:15:02 +03:00
committed by Avi Kivity
parent 2c4501f317
commit 610fe274fd
2 changed files with 1 additions and 1 deletions

View File

@@ -204,7 +204,6 @@ fi
if [ $ENABLE_SERVICE -eq 1 ]; then
if [ "$ID" = "fedora" ] || [ "$ID" = "centos" ]; then
systemctl enable scylla-server.service
systemctl enable scylla-jmx.service
systemctl enable collectd.service
fi
fi

View File

@@ -1,5 +1,6 @@
[Unit]
Description=Scylla Server
Wants=scylla-jmx.service
[Service]
PermissionsStartOnly=true