blob: 15010dacf8e5d12e860de4b85c8734893623de96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/sbin/openrc-run
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
run_dir=${run_dir:-/run/scylla-jmx}
command="/opt/scylladb/jmx/scylla-jmx"
command_args="-l /opt/scylladb/jmx"
command_background="true"
command_progress="true"
pidfile=${run_dir}/${SVCNAME}.pid
user=${USER:-scylla}
group=${GROUP:-scylla}
retry="SIGTERM/120"
start_stop_daemon_args="--user ${user} --group ${group} --wait 2000 --make-pidfile"
depend() {
use net localmount logger
provide scylla-jmx
}
start_pre() {
checkpath -d -m 0750 -o "${user}":"${group}" "${run_dir}"
}
|