systemd service file for sensors
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 8 Feb 2020 14:10:53 +0000 (15:10 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 8 Feb 2020 14:10:53 +0000 (15:10 +0100)
system/air-dsm501.service [new file with mode: 0644]
system/air-mh-z19b.service [new file with mode: 0644]
system/air-mq7.service [new file with mode: 0644]
system/air-zph02.service [new file with mode: 0644]

diff --git a/system/air-dsm501.service b/system/air-dsm501.service
new file mode 100644 (file)
index 0000000..724fe2c
--- /dev/null
@@ -0,0 +1,10 @@
+[Unit]
+Description=Air
+
+[Service]
+User=dpavlin
+ExecStart=/home/dpavlin/air-quality/dsm501.pl
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
diff --git a/system/air-mh-z19b.service b/system/air-mh-z19b.service
new file mode 100644 (file)
index 0000000..b940431
--- /dev/null
@@ -0,0 +1,10 @@
+[Unit]
+Description=Air
+
+[Service]
+User=dpavlin
+ExecStart=/home/dpavlin/air-quality/mh-z19b.pl
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
diff --git a/system/air-mq7.service b/system/air-mq7.service
new file mode 100644 (file)
index 0000000..21e8f97
--- /dev/null
@@ -0,0 +1,10 @@
+[Unit]
+Description=Air
+
+[Service]
+User=dpavlin
+ExecStart=/home/dpavlin/air-quality/mq7.sh
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
diff --git a/system/air-zph02.service b/system/air-zph02.service
new file mode 100644 (file)
index 0000000..c76b5c3
--- /dev/null
@@ -0,0 +1,10 @@
+[Unit]
+Description=Air
+
+[Service]
+User=dpavlin
+ExecStart=/home/dpavlin/air-quality/zph02.pl
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target