From 404611873da19eae9bfea5458ce658d28ea2e0ba Mon Sep 17 00:00:00 2001 From: sberk42 Date: Sun, 5 Jul 2020 08:39:52 +0200 Subject: [PATCH] Added systemd service --- systemd/fritzbox_exporter.service | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 systemd/fritzbox_exporter.service diff --git a/systemd/fritzbox_exporter.service b/systemd/fritzbox_exporter.service new file mode 100644 index 0000000..42b60c5 --- /dev/null +++ b/systemd/fritzbox_exporter.service @@ -0,0 +1,11 @@ +[Unit] +Description=FritzBox Prometheus Exporter + +[Service] +User=fritzbox_exporter +Group=fritzbox_exporter +EnvironmentFile=/opt/fritzbox_exporter/.fritzbox_exporter.env +ExecStart=/opt/fritzbox_exporter/fritzbox_exporter -gateway-url http://fritz.box:49000 -metrics-file /opt/fritzbox_exporter/metrics.json -listen-address 127.0.0.1:9101 + +[Install] +WantedBy=multi-user.target