From cd8d40ff0d50370b7b80a01d472b4893939b4812 Mon Sep 17 00:00:00 2001 From: jimmy Date: Sat, 29 May 2021 03:13:16 +0000 Subject: [PATCH] Copy from https://git.chch.tech/chchtech/mqtt-influx --- mqttinflux/mqtt-influx.service | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 mqttinflux/mqtt-influx.service diff --git a/mqttinflux/mqtt-influx.service b/mqttinflux/mqtt-influx.service new file mode 100644 index 0000000..12cfd94 --- /dev/null +++ b/mqttinflux/mqtt-influx.service @@ -0,0 +1,10 @@ +[Unit] +Description=MQTT Influx ingest + +[Service] +WorkingDirectory=/opt/mqtt-influx +Restart=on-failure +ExecStart=/usr/local/bin/pipenv run python /opt/mqtt-influx/main.py + +[Install] +WantedBy=default.target