f73da49f62
Since scylla-jmx uses /usr/lib/scylla/jmx for program directory, we also need to move them under /opt/scylladb. Signed-off-by: Takuya ASADA <syuu@scylladb.com> Message-Id: <20190618122451.27721-1-syuu@scylladb.com>
22 lines
521 B
Plaintext
22 lines
521 B
Plaintext
[Unit]
|
|
Description=Scylla JMX
|
|
Requires=scylla-server.service
|
|
After=scylla-server.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
{{#debian}}
|
|
EnvironmentFile=/etc/default/scylla-jmx
|
|
{{/debian}}
|
|
{{#redhat}}
|
|
EnvironmentFile=/etc/sysconfig/scylla-jmx
|
|
{{/redhat}}
|
|
User=scylla
|
|
Group=scylla
|
|
ExecStart=/opt/scylladb/jmx/scylla-jmx $SCYLLA_JMX_PORT $SCYLLA_API_PORT $SCYLLA_API_ADDR $SCYLLA_JMX_ADDR $SCYLLA_JMX_FILE $SCYLLA_JMX_LOCAL $SCYLLA_JMX_REMOTE $SCYLLA_JMX_DEBUG
|
|
KillMode=process
|
|
Restart=on-abnormal
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|