added systemd service files
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 23 Sep 2017 12:51:27 +0000 (14:51 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 23 Sep 2017 12:51:27 +0000 (14:51 +0200)
system/mqtt-rtl_433-influx.service [new file with mode: 0644]
system/rtl_433-json-mqtt.service [new file with mode: 0644]

diff --git a/system/mqtt-rtl_433-influx.service b/system/mqtt-rtl_433-influx.service
new file mode 100644 (file)
index 0000000..6a3f2c4
--- /dev/null
@@ -0,0 +1,10 @@
+[Unit]
+Description=mqtt-rtl_433-influx.sh
+
+[Service]
+User=pi
+ExecStart=/home/pi/rtl433-sensors/mqtt-rtl_433-influx.sh
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
diff --git a/system/rtl_433-json-mqtt.service b/system/rtl_433-json-mqtt.service
new file mode 100644 (file)
index 0000000..092b4f1
--- /dev/null
@@ -0,0 +1,10 @@
+[Unit]
+Description=rtl_433-json-mqtt.sh
+
+[Service]
+User=pi
+ExecStart=/home/pi/rtl433-sensors/rtl_433-json-mqtt.sh
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target