From 6829d05453658a9f9672c847299c652b15126db1 Mon Sep 17 00:00:00 2001 From: xengineering Date: Fri, 30 Oct 2020 10:49:55 +0100 Subject: Introduce iot-barcode.target --- systemd/iot-barcode-device-handler.service | 12 ++++++++++++ systemd/iot-barcode-transmitter.service | 14 ++++++++++++++ systemd/iot-barcode.target | 10 ++++++++++ 3 files changed, 36 insertions(+) create mode 100644 systemd/iot-barcode-device-handler.service create mode 100644 systemd/iot-barcode-transmitter.service create mode 100644 systemd/iot-barcode.target (limited to 'systemd') 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 + -- cgit v1.2.3-70-g09d2