summaryrefslogtreecommitdiffstats
path: root/systemd
diff options
context:
space:
mode:
authormm-chen <github@malte-modler.de>2018-04-09 21:29:04 +0200
committerSebastian Reichel <sre@ring0.de>2018-06-28 01:52:53 +0200
commit764c39f4facfe42d926cd952dcf0f7e2768097a8 (patch)
tree0c08a3808c056169117f1937e79fb403515ae0b3 /systemd
parentab2ea719ee4a86e082f8d205c1d33a048e1cfe57 (diff)
downloadserial-barcode-scanner-764c39f4facfe42d926cd952dcf0f7e2768097a8.tar.bz2
Display on/off
Turns the display off and on via MQTT
Diffstat (limited to 'systemd')
-rw-r--r--systemd/shopsystem-display-on-off.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/systemd/shopsystem-display-on-off.service b/systemd/shopsystem-display-on-off.service
new file mode 100644
index 0000000..dfa6f0c
--- /dev/null
+++ b/systemd/shopsystem-display-on-off.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Display on-off via MQTT
+After=systemd-user-sessions.service
+
+[Service]
+Type=simple
+ExecStart=/home/shop/serial-barcode-scanner/src/display-on-off/display-on-off.sh
+Restart=always
+RestartSec=10
+
+[Install]
+WantedBy=multi-user.target