From f303f2820928ad7e83f256bad33aef2ab1c07368 Mon Sep 17 00:00:00 2001 From: Peter Hasse Date: Wed, 24 Nov 2021 17:26:57 +0100 Subject: [PATCH] added simple systemd unit --- systemd/starlink-influx2.service | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 systemd/starlink-influx2.service diff --git a/systemd/starlink-influx2.service b/systemd/starlink-influx2.service new file mode 100644 index 0000000..4ac6e01 --- /dev/null +++ b/systemd/starlink-influx2.service @@ -0,0 +1,9 @@ +[Unit] +Description=Starlink GRPC to InfluxDB 2.x exporter +After=network.target + +[Service] +Type=simple +WorkingDirectory=/opt/starlink-grpc-tools/ +Environment=INFLUXDB_URL=localhost:8086 INFLUXDB_TOKEN= INFLUXDB_Bucket= INFLUXDB_ORG= INFLUXDB_SSL=false +ExecStart=python3 dish_grpc_influx2.py -B starlink -t status alert_detail