summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Hoffstätte <holger@applied-asynchrony.com>2024-06-27 15:05:42 +0200
committerSam James <sam@gentoo.org>2024-07-04 02:21:33 +0100
commit0d5a31ce556742d39617ee80c79507e3e131468c (patch)
treee453cb49c69b042985278b4d1c06a5fc00407117 /app-metrics/chrony_exporter/files/chrony_exporter.initd
parentacct-user/chrony_exporter: new package (diff)
downloadgentoo-0d5a31ce556742d39617ee80c79507e3e131468c.tar.gz
gentoo-0d5a31ce556742d39617ee80c79507e3e131468c.tar.bz2
gentoo-0d5a31ce556742d39617ee80c79507e3e131468c.zip
app-metrics/chrony_exporter: new package, add 0.10.1
Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com> Closes: https://github.com/gentoo/gentoo/pull/37321 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-metrics/chrony_exporter/files/chrony_exporter.initd')
-rw-r--r--app-metrics/chrony_exporter/files/chrony_exporter.initd17
1 files changed, 17 insertions, 0 deletions
diff --git a/app-metrics/chrony_exporter/files/chrony_exporter.initd b/app-metrics/chrony_exporter/files/chrony_exporter.initd
new file mode 100644
index 000000000000..7cddf925322e
--- /dev/null
+++ b/app-metrics/chrony_exporter/files/chrony_exporter.initd
@@ -0,0 +1,17 @@
+#!/sbin/openrc-run
+# Copyright 2016-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+description="Prometheus chrony metrics exporter"
+pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
+user=${user:-${RC_SVCNAME}}
+group=${group:-${RC_SVCNAME}}
+
+command="/usr/bin/chrony_exporter"
+command_args="${command_args}"
+command_background="true"
+start_stop_daemon_args="--user ${user} --group ${group}"
+
+depend() {
+ after chronyd
+}