diff options
author | xengineering <mail2xengineering@protonmail.com> | 2020-10-30 10:49:55 +0100 |
---|---|---|
committer | xengineering <mail2xengineering@protonmail.com> | 2020-10-30 11:00:01 +0100 |
commit | 6829d05453658a9f9672c847299c652b15126db1 (patch) | |
tree | 60d0f4ae1ec6950648e954c9a6528ce5a8e628ce /systemd | |
parent | 84b9ddcc2905f5d8667cfef1359b724c23d27365 (diff) | |
download | iot-barcode-scanner-6829d05453658a9f9672c847299c652b15126db1.tar iot-barcode-scanner-6829d05453658a9f9672c847299c652b15126db1.tar.zst iot-barcode-scanner-6829d05453658a9f9672c847299c652b15126db1.zip |
Introduce iot-barcode.target
Diffstat (limited to 'systemd')
-rw-r--r-- | systemd/iot-barcode-device-handler.service | 12 | ||||
-rw-r--r-- | systemd/iot-barcode-transmitter.service | 14 | ||||
-rw-r--r-- | systemd/iot-barcode.target | 10 |
3 files changed, 36 insertions, 0 deletions
diff --git a/systemd/iot-barcode-device-handler.service b/systemd/iot-barcode-device-handler.service new file mode 100644 index 0000000..caae8c0 --- /dev/null +++ b/systemd/iot-barcode-device-handler.service @@ -0,0 +1,12 @@ + +[Unit] +Description=A Daemon to read Barcodes from a specified Barcode Reader Device + +[Service] +Type=simple +ExecStart=/usr/bin/iot_barcode_device_handler +User=root +Group=root + +[Install] +WantedBy=iot-barcode.target diff --git a/systemd/iot-barcode-transmitter.service b/systemd/iot-barcode-transmitter.service new file mode 100644 index 0000000..8ed31fb --- /dev/null +++ b/systemd/iot-barcode-transmitter.service @@ -0,0 +1,14 @@ + +[Unit] +Description=A Daemon to transmit Barcodes to an MQTT Broker +Requires=iot-barcode-device-handler.service +After=iot-barcode-device-handler.service + +[Service] +Type=simple +ExecStart=/usr/bin/iot_barcode_transmitter +User=iotbarcode +Group=iotbarcode + +[Install] +WantedBy=iot-barcode.target diff --git a/systemd/iot-barcode.target b/systemd/iot-barcode.target new file mode 100644 index 0000000..4d5cd7e --- /dev/null +++ b/systemd/iot-barcode.target @@ -0,0 +1,10 @@ + +[Unit] +Description=Start this Target to start all IoT Barcode Services +Requires=multi-user.target +After=multi-user.target +AllowIsolate=yes + +[Install] +WantedBy=multi-user.target + |