diff options
author | Patrick Lauer <patrick@gentoo.org> | 2018-05-11 19:18:14 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2018-05-11 19:18:58 +0000 |
commit | 98d4a832709e1deb14ad6fb59f54bd3852ad167b (patch) | |
tree | 556e10e6d85c5b52cbbaf2605f0d9bd62af861a4 /app-admin/aerospike-amc-community/files | |
parent | dev-db/aerospike-server-community: Bump (diff) | |
download | gentoo-98d4a832709e1deb14ad6fb59f54bd3852ad167b.tar.gz gentoo-98d4a832709e1deb14ad6fb59f54bd3852ad167b.tar.bz2 gentoo-98d4a832709e1deb14ad6fb59f54bd3852ad167b.zip |
app-admin/aerospike-amc-community: Bump
Package-Manager: Portage-2.3.36, Repoman-2.3.9
Diffstat (limited to 'app-admin/aerospike-amc-community/files')
-rw-r--r-- | app-admin/aerospike-amc-community/files/amc.init.3 | 21 |
1 files changed, 21 insertions, 0 deletions
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}" +} |