summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2017-10-19 20:34:32 +0200
committerManuel Rüger <mrueg@gentoo.org>2017-10-19 20:34:32 +0200
commitb9d5efcb364d56b95da752ca34f9be0c2cecf590 (patch)
tree71c2ab0c5b98faa53700086da8053440210aaaf7 /net-analyzer/prometheus-alertmanager/files/prometheus-alertmanager.initd
parentnet-analyzer/prometheus: Remove old (diff)
downloadgentoo-b9d5efcb364d56b95da752ca34f9be0c2cecf590.tar.gz
gentoo-b9d5efcb364d56b95da752ca34f9be0c2cecf590.tar.bz2
gentoo-b9d5efcb364d56b95da752ca34f9be0c2cecf590.zip
net-analyzer/prometheus-alertmanager: Initial version
Package-Manager: Portage-2.3.11, Repoman-2.3.3
Diffstat (limited to 'net-analyzer/prometheus-alertmanager/files/prometheus-alertmanager.initd')
-rw-r--r--net-analyzer/prometheus-alertmanager/files/prometheus-alertmanager.initd19
1 files changed, 19 insertions, 0 deletions
diff --git a/net-analyzer/prometheus-alertmanager/files/prometheus-alertmanager.initd b/net-analyzer/prometheus-alertmanager/files/prometheus-alertmanager.initd
new file mode 100644
index 000000000000..ece8bf145876
--- /dev/null
+++ b/net-analyzer/prometheus-alertmanager/files/prometheus-alertmanager.initd
@@ -0,0 +1,19 @@
+#!/sbin/openrc-run
+# Copyright 2016-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+description="Prometheus alertmanager"
+pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
+user=${user:-${RC_SVCNAME}}
+group=${group:-${RC_SVCNAME}}
+
+command="/usr/bin/alertmanager"
+command_args="${command_args:--config.file=/etc/alertmanager/config.yml}"
+command_background="true"
+start_stop_daemon_args="--user ${user} --group ${group} \
+ --stdout /var/log/alertmanager/${RC_SVCNAME}.log \
+ --stderr /var/log/alertmanager/${RC_SVCNAME}.log"
+
+depend() {
+ after net
+}