projects
/
rpi-ds18b20
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a5a0c6
)
added systemd service file
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Fri, 28 Aug 2020 09:37:15 +0000
(11:37 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Fri, 28 Aug 2020 09:37:15 +0000
(11:37 +0200)
rpi-ds18b20.service
[new file with mode: 0644]
patch
|
blob
diff --git a/rpi-ds18b20.service
b/rpi-ds18b20.service
new file mode 100644
(file)
index 0000000..
9a8e754
--- /dev/null
+++ b/
rpi-ds18b20.service
@@ -0,0
+1,15
@@
+[Unit]
+Description=DS18B20 temperature monitoring
+After=networking.target
+Wants=networking.target
+
+[Service]
+User=root
+Environment="DC=b101"
+ExecStartPre=/bin/sh -c 'until ping -c1 10.60.0.92; do sleep 1; done;'
+ExecStart=/home/pi/rpi-ds18b20/w1-loop.sh
+Restart=always
+RestartSec=3s
+
+[Install]
+WantedBy=multi-user.target