diff options
author | 2017-08-03 08:53:06 +0200 | |
---|---|---|
committer | 2017-08-03 08:53:06 +0200 | |
commit | 83b378bc95c1f3e0e371ca0927b6a25e9bd9674a (patch) | |
tree | f654cbdad9c22ef02a6caaf610cc1d02fb5438ae /app-admin/scylla-jmx/files | |
parent | app-admin/scylla-tools: working ebuilds (diff) | |
download | ultrabug-83b378bc95c1f3e0e371ca0927b6a25e9bd9674a.tar.gz ultrabug-83b378bc95c1f3e0e371ca0927b6a25e9bd9674a.tar.bz2 ultrabug-83b378bc95c1f3e0e371ca0927b6a25e9bd9674a.zip |
app-admin/scylla-jmx: new ebuild
Diffstat (limited to 'app-admin/scylla-jmx/files')
-rw-r--r-- | app-admin/scylla-jmx/files/scylla-jmx.confd | 9 | ||||
-rw-r--r-- | app-admin/scylla-jmx/files/scylla-jmx.initd | 23 |
2 files changed, 32 insertions, 0 deletions
diff --git a/app-admin/scylla-jmx/files/scylla-jmx.confd b/app-admin/scylla-jmx/files/scylla-jmx.confd new file mode 100644 index 0000000..8177e13 --- /dev/null +++ b/app-admin/scylla-jmx/files/scylla-jmx.confd @@ -0,0 +1,9 @@ +# please check the defaults of scylla in the /etc/default/scylla-jmx file! +# +# you can configure the following options for the OpenRC init script: +# - run_dir + +# source scylla default env +source /etc/default/scylla-jmx + +rc_need="scylla-server"
\ No newline at end of file diff --git a/app-admin/scylla-jmx/files/scylla-jmx.initd b/app-admin/scylla-jmx/files/scylla-jmx.initd new file mode 100644 index 0000000..b9a8067 --- /dev/null +++ b/app-admin/scylla-jmx/files/scylla-jmx.initd @@ -0,0 +1,23 @@ +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +run_dir=${run_dir:-/run/scylla-jmx} + +command="/usr/lib/scylla/jmx/scylla-jmx" +command_args="-l /usr/lib/scylla/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 +} + +start_pre() { + checkpath -d -m 0750 -o "${user}":"${group}" "${run_dir}" +} |