From b635a3b39e38084a21f51b4adc27cda79c209b43 Mon Sep 17 00:00:00 2001 From: Matthew Frost Date: Sat, 18 Nov 2023 16:03:03 +0100 Subject: [PATCH] dnh --- labelapi.service | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 labelapi.service diff --git a/labelapi.service b/labelapi.service new file mode 100644 index 0000000..c54156a --- /dev/null +++ b/labelapi.service @@ -0,0 +1,17 @@ +[Unit] +Description=Label Maker API +ConditionPathExists=/home/mattronix/escpos-go-labels +After=network.target +[Service] +Type=simple +User=mattronix +Group=mattronix +WorkingDirectory=/home/mattronix/escpos-go-labels +ExecStart=/usr/bin/go run main.go +Restart=on-failure +RestartSec=10 +StandardOutput=syslog +StandardError=syslog +SyslogIdentifier=labelapi +[Install] +WantedBy=multi-user.target \ No newline at end of file