From be3cb8adcdf840a9566762212da873606a231ac1 Mon Sep 17 00:00:00 2001 From: Andrew Brooks Date: Thu, 25 Jan 2018 21:23:39 -0600 Subject: [PATCH] Added draft systemd service --- barcode_service/barcode_service.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 barcode_service/barcode_service.service diff --git a/barcode_service/barcode_service.service b/barcode_service/barcode_service.service new file mode 100644 index 0000000..c20ca05 --- /dev/null +++ b/barcode_service/barcode_service.service @@ -0,0 +1,12 @@ +[Unit] +Description=Podbay barcode service +After=network.target, tinc.target +Wants=network.target + +[Service] +Type=simple +RemainAfterExit=yes +ExecStart=/usr/local/bin/barcode_service -d "usb-Wasp_k2_Wasp_Bar_Code_USBi-event-kbd" -e "tcp://127.0.0.1:5000" + +[Install] +WantedBy=multi-user.target