From ea31ad0ed5501d0bf92267c35beaf06ac016bad2 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 13 May 2018 16:38:56 +0100 Subject: gentoo resync : 13.05.2018 --- app-admin/aerospike-amc-community/files/amc.init.3 | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 app-admin/aerospike-amc-community/files/amc.init.3 (limited to 'app-admin/aerospike-amc-community/files') diff --git a/app-admin/aerospike-amc-community/files/amc.init.3 b/app-admin/aerospike-amc-community/files/amc.init.3 new file mode 100644 index 000000000000..6fd8097b18f1 --- /dev/null +++ b/app-admin/aerospike-amc-community/files/amc.init.3 @@ -0,0 +1,21 @@ +#!/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}" + +depend() { + use net +} + +start_post() { + ewaitfile 60 "${pidfile}" +} -- cgit v1.2.3