summarylogtreecommitdiffstats
path: root/prometheus-fritzbox-exporter.service
diff options
context:
space:
mode:
authorddennis2020-10-30 14:29:24 +0100
committerddennis2020-10-30 14:29:24 +0100
commit0c8ab95c28ee45058b19c5293bfb60b10274f5d8 (patch)
tree375f2e372946f33d0406eb2f700b1763ca63aae8 /prometheus-fritzbox-exporter.service
parentd6b2ab513928a5215e92853f5106d158f75603e6 (diff)
downloadaur-0c8ab95c28ee45058b19c5293bfb60b10274f5d8.tar.gz
Several package and config tweaks
* move hard-coded program parameter from systemd unit file into a config file
Diffstat (limited to 'prometheus-fritzbox-exporter.service')
-rw-r--r--prometheus-fritzbox-exporter.service7
1 files changed, 5 insertions, 2 deletions
diff --git a/prometheus-fritzbox-exporter.service b/prometheus-fritzbox-exporter.service
index 0124e59510fb..99ff79b0e5b2 100644
--- a/prometheus-fritzbox-exporter.service
+++ b/prometheus-fritzbox-exporter.service
@@ -1,10 +1,13 @@
[Unit]
Description=Prometheus UPnP exporter for Fritz!Box routers
+After=network.target
[Service]
-ExecStart=/usr/bin/prometheus-fritzbox-exporter -gateway-url http://fritz.box:49000 -metrics-file /opt/fritzbox_exporter/metrics.json -listen-address 127.0.0.1:9101
-DynamicUser=true
+EnvironmentFile=-/etc/conf.d/prometheus-fritzbox-exporter
+ExecStart=/usr/bin/prometheus-fritzbox-exporter $FRITZBOX_EXPORTER_ARGS
+Restart=on-failure
+DynamicUser=true
NoNewPrivileges=true
ProtectSystem=full
ProtectKernelModules=true