aboutsummaryrefslogtreecommitdiffstats
path: root/testing/prometheus-wireguard-exporter/prometheus-wireguard-exporter.initd
diff options
context:
space:
mode:
authorMichael Aldridge <michael.aldridge@betterhelp.com>2020-02-11 21:51:33 -0800
committerLeo <thinkabit.ukim@gmail.com>2020-02-12 17:15:16 -0300
commite43c2c7582aaa5de534ce83f2da2a540f4a0f78c (patch)
treea63574ac5b18598e2a829bcc07719a42b73f4604 /testing/prometheus-wireguard-exporter/prometheus-wireguard-exporter.initd
parente464383d4442e0a10542f78450b774c2e2a29d5b (diff)
downloadaports-e43c2c7582aaa5de534ce83f2da2a540f4a0f78c.tar.bz2
aports-e43c2c7582aaa5de534ce83f2da2a540f4a0f78c.tar.xz
testing/prometheus-wireguard-exporter: new aport
Diffstat (limited to 'testing/prometheus-wireguard-exporter/prometheus-wireguard-exporter.initd')
-rw-r--r--testing/prometheus-wireguard-exporter/prometheus-wireguard-exporter.initd11
1 files changed, 11 insertions, 0 deletions
diff --git a/testing/prometheus-wireguard-exporter/prometheus-wireguard-exporter.initd b/testing/prometheus-wireguard-exporter/prometheus-wireguard-exporter.initd
new file mode 100644
index 0000000000..9b2efd98dc
--- /dev/null
+++ b/testing/prometheus-wireguard-exporter/prometheus-wireguard-exporter.initd
@@ -0,0 +1,11 @@
+#!/sbin/openrc-run
+
+description="Prometheus Wireguard Exporter"
+supervisor=supervise-daemon
+command=/usr/bin/prometheus_wireguard_exporter
+command_args="-n /etc/wireguard/${INTERFACE}.conf"
+pidfile="/run/${RC_SVCNAME}.pid"
+
+depend() {
+ need net
+}