]> git.itanic.dy.fi Git - BME280_driver/commitdiff
Add systemd service file for bmed
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Tue, 9 Mar 2021 13:44:25 +0000 (15:44 +0200)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Tue, 9 Mar 2021 13:47:30 +0000 (15:47 +0200)
Right now this defaults to /dev/i2c-0 and 0x76 address, which is not
configurable.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
bmed.service [new file with mode: 0644]

diff --git a/bmed.service b/bmed.service
new file mode 100644 (file)
index 0000000..b19dfac
--- /dev/null
@@ -0,0 +1,11 @@
+[Unit]
+Description=BME280 data daemon
+
+[Service]
+ExecStart=/usr/bin/bmed /dev/i2c-0 0x76
+
+Restart=always
+RestartSec=15
+
+[Install]
+WantedBy=multi-user.target