added systemd grove-sensor.service
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 12 Dec 2020 17:37:27 +0000 (17:37 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 12 Dec 2020 17:37:27 +0000 (17:37 +0000)
systemd/grove-sensor.service [new file with mode: 0644]

diff --git a/systemd/grove-sensor.service b/systemd/grove-sensor.service
new file mode 100644 (file)
index 0000000..66b1289
--- /dev/null
@@ -0,0 +1,13 @@
+[Unit]
+Description=Send GroveSensor data into InfluxDB
+Documentation=https://github.com/dpavlin/GroveSensor
+After=network.target
+
+[Service]
+# user must be in dialout group
+User=dpavlin
+ExecStart=/home/dpavlin/GroveSensor/influx.sh
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target