This commit is contained in:
Matthew Frost 2023-11-18 16:03:03 +01:00
parent 8721646b29
commit b635a3b39e

17
labelapi.service Normal file
View file

@ -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