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:
1
dist/common/scripts/scylla_setup
vendored
1
dist/common/scripts/scylla_setup
vendored
@@ -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
|
||||
|
||||
1
dist/common/systemd/scylla-server.service.in
vendored
1
dist/common/systemd/scylla-server.service.in
vendored
@@ -1,5 +1,6 @@
|
||||
[Unit]
|
||||
Description=Scylla Server
|
||||
Wants=scylla-jmx.service
|
||||
|
||||
[Service]
|
||||
PermissionsStartOnly=true
|
||||
|
||||
Reference in New Issue
Block a user