summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2016-03-30 16:37:06 +0200
committerPatrick Lauer <patrick@gentoo.org>2016-03-30 16:37:06 +0200
commit03963fb7dad6d6d73bc380fed4cfb700ef87c437 (patch)
tree7aeb33a7c81d5f00d338b67de6fe831cddd5b9ec /app-admin/aerospike-amc-community/files
parentdev-db/aerospike-server-community: Initial import, borrowed and bumped from t... (diff)
downloadgentoo-03963fb7dad6d6d73bc380fed4cfb700ef87c437.tar.gz
gentoo-03963fb7dad6d6d73bc380fed4cfb700ef87c437.tar.bz2
gentoo-03963fb7dad6d6d73bc380fed4cfb700ef87c437.zip
app-admin/aerospike-amc-community: Initial import, borrowed from the adjust overlay
Package-Manager: portage-2.2.28
Diffstat (limited to 'app-admin/aerospike-amc-community/files')
-rw-r--r--app-admin/aerospike-amc-community/files/amc.init24
1 files changed, 24 insertions, 0 deletions
diff --git a/app-admin/aerospike-amc-community/files/amc.init b/app-admin/aerospike-amc-community/files/amc.init
new file mode 100644
index 000000000000..2fb535cd4310
--- /dev/null
+++ b/app-admin/aerospike-amc-community/files/amc.init
@@ -0,0 +1,24 @@
+#!/sbin/runscript
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/mongodb/files/mongodb.initd-r2,v 1.2 2014/05/26 08:03:45 ultrabug Exp $
+
+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_background="true"
+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}"
+}