diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2018-04-12 22:43:10 +0200 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2018-04-12 22:43:10 +0200 |
commit | d8a2eaa5389cd42ed28700664cc83871e77dd470 (patch) | |
tree | 6a395747b0608661c89003a1e0742a43d55a9802 /app-metrics/openvpn_exporter/files | |
parent | sys-auth/docker_auth: Remove old (diff) | |
download | gentoo-d8a2eaa5389cd42ed28700664cc83871e77dd470.tar.gz gentoo-d8a2eaa5389cd42ed28700664cc83871e77dd470.tar.bz2 gentoo-d8a2eaa5389cd42ed28700664cc83871e77dd470.zip |
app-metrics/openvpn_exporter: Initial version
Package-Manager: Portage-2.3.28, Repoman-2.3.9
Diffstat (limited to 'app-metrics/openvpn_exporter/files')
3 files changed, 28 insertions, 0 deletions
diff --git a/app-metrics/openvpn_exporter/files/openvpn_exporter.confd b/app-metrics/openvpn_exporter/files/openvpn_exporter.confd new file mode 100644 index 000000000000..5aef9b6d5a79 --- /dev/null +++ b/app-metrics/openvpn_exporter/files/openvpn_exporter.confd @@ -0,0 +1,2 @@ +# arguments for prometheus openvpn exporter +command_args="-openvpn.status_paths /etc/openvpn/openvpn-status.log" diff --git a/app-metrics/openvpn_exporter/files/openvpn_exporter.initd b/app-metrics/openvpn_exporter/files/openvpn_exporter.initd new file mode 100644 index 000000000000..50fa4dab4fb2 --- /dev/null +++ b/app-metrics/openvpn_exporter/files/openvpn_exporter.initd @@ -0,0 +1,19 @@ +#!/sbin/openrc-run +# Copyright 2016-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +description="Prometheus Exporter for OpenVPN status Metrics" +pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"} +user=${user:-${RC_SVCNAME}} +group=${group:-${RC_SVCNAME}} + +command="/usr/bin/openvpn_exporter" +command_args="${command_args:--openvpn.status_paths /etc/openvpn/openvpn-status.log}" +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 +} diff --git a/app-metrics/openvpn_exporter/files/openvpn_exporter.logrotated b/app-metrics/openvpn_exporter/files/openvpn_exporter.logrotated new file mode 100644 index 000000000000..37ffbe501421 --- /dev/null +++ b/app-metrics/openvpn_exporter/files/openvpn_exporter.logrotated @@ -0,0 +1,7 @@ +/var/log/openvpn_exporter/openvpn_exporter.log { + missingok + size 5M + rotate 3 + compress + copytruncate +} |