diff options
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 + |