diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2018-04-12 22:21:21 +0200 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2018-04-12 22:21:21 +0200 |
commit | 4c752843f78af5bd77ac243704b5b63140a92dff (patch) | |
tree | cfeadee37c14a48b46285dbff90b23b558ae4d5d /app-metrics/postgres_exporter/files | |
parent | dev-util/spec-cleaner: Bump to 1.0.7 (diff) | |
download | gentoo-4c752843f78af5bd77ac243704b5b63140a92dff.tar.gz gentoo-4c752843f78af5bd77ac243704b5b63140a92dff.tar.bz2 gentoo-4c752843f78af5bd77ac243704b5b63140a92dff.zip |
app-metrics/postgres_exporter: Initial version
Package-Manager: Portage-2.3.28, Repoman-2.3.9
Diffstat (limited to 'app-metrics/postgres_exporter/files')
-rw-r--r-- | app-metrics/postgres_exporter/files/postgres_exporter.confd | 2 | ||||
-rw-r--r-- | app-metrics/postgres_exporter/files/postgres_exporter.initd | 19 |
2 files changed, 21 insertions, 0 deletions
diff --git a/app-metrics/postgres_exporter/files/postgres_exporter.confd b/app-metrics/postgres_exporter/files/postgres_exporter.confd new file mode 100644 index 000000000000..88fa9e35088f --- /dev/null +++ b/app-metrics/postgres_exporter/files/postgres_exporter.confd @@ -0,0 +1,2 @@ +# arguments for prometheus postgres exporter +command_args="" diff --git a/app-metrics/postgres_exporter/files/postgres_exporter.initd b/app-metrics/postgres_exporter/files/postgres_exporter.initd new file mode 100644 index 000000000000..83bff2029518 --- /dev/null +++ b/app-metrics/postgres_exporter/files/postgres_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 PostgreSQL exporter" +pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"} +user=${user:-${RC_SVCNAME}} +group=${group:-${RC_SVCNAME}} + +command="/usr/bin/postgres_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 +} |