4672cd360f
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>
18 lines
349 B
SYSTEMD
18 lines
349 B
SYSTEMD
[Unit]
|
|
Description=Scylla JMX
|
|
Requisite=scylla-server.service
|
|
After=scylla-server.service
|
|
BindsTo=scylla-server.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
EnvironmentFile=@@SYSCONFDIR@@/scylla-jmx
|
|
User=scylla
|
|
Group=scylla
|
|
ExecStart=/usr/lib/scylla/jmx/scylla-jmx -l /usr/lib/scylla/jmx
|
|
KillMode=process
|
|
Restart=on-abnormal
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|