summaryrefslogtreecommitdiff
path: root/app-admin/aerospike-amc-community/files/amc.init.4
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/aerospike-amc-community/files/amc.init.4')
-rw-r--r--app-admin/aerospike-amc-community/files/amc.init.418
1 files changed, 18 insertions, 0 deletions
diff --git a/app-admin/aerospike-amc-community/files/amc.init.4 b/app-admin/aerospike-amc-community/files/amc.init.4
new file mode 100644
index 000000000000..87405a83c709
--- /dev/null
+++ b/app-admin/aerospike-amc-community/files/amc.init.4
@@ -0,0 +1,18 @@
+#!/sbin/openrc-run
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+run_dir=${run_dir:-/run}
+
+command="/opt/amc/amc"
+command_progress="true"
+retry='TERM/30/KILL/5'
+pidfile=${run_dir}/${SVCNAME}.pid
+user=${user:-root}
+group=${group:-root}
+start_stop_daemon_args="--user ${user} --group ${group}"
+command_args="--daemon"
+
+depend() {
+ use net
+}