app-metrics/postfix_exporter: Add ebuild with systemd unit file.

Package-Manager: Portage-2.3.76, Repoman-2.3.16
This commit is contained in:
Manuel Friedli 2019-11-19 17:00:27 +01:00
parent 280322e41a
commit d19f584e7c
8 changed files with 136 additions and 0 deletions

View file

@ -0,0 +1,19 @@
#!/sbin/openrc-run
# Copyright 2016-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
description="Prometheus Exporter for Postfix Metrics"
pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
user=${user:-${RC_SVCNAME}}
group=${group:-${RC_SVCNAME}}
command="/usr/bin/postfix_exporter"
command_args="${command_args:-}"
command_background="true"
start_stop_daemon_args="--user ${user} --group ${group} \
--stdout /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log \
--stderr /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log"
depend() {
after net
}