diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-admin/aerospike-amc-community/files/amc.init2 |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-admin/aerospike-amc-community/files/amc.init2')
-rw-r--r-- | app-admin/aerospike-amc-community/files/amc.init2 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/app-admin/aerospike-amc-community/files/amc.init2 b/app-admin/aerospike-amc-community/files/amc.init2 new file mode 100644 index 000000000000..3e3bdd9920a3 --- /dev/null +++ b/app-admin/aerospike-amc-community/files/amc.init2 @@ -0,0 +1,24 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +config_file=${config_file:-/etc/amc/config/gunicorn_config.py} +run_dir=${run_dir:-/run} + +command="/usr/bin/gunicorn" +command_args="--daemon --config ${config_file} flaskapp:app" +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}" +required_files="${config_file}" + +depend() { + use net +} + +start_post() { + ewaitfile 60 "${pidfile}" +} |