escpos-go-labels/labelapi.service

18 lines
366 B
SYSTEMD
Raw Permalink Normal View History

2023-11-18 15:03:03 +00:00
[Unit]
Description=Label Maker API
ConditionPathExists=/home/pi/escpos-go-labels
2023-11-18 15:03:03 +00:00
After=network.target
[Service]
Type=simple
User=pi
Group=lp
WorkingDirectory=/home/pi/escpos-go-labels
ExecStart=/usr/local/go/bin/go run main.go
2023-11-18 15:03:03 +00:00
Restart=on-failure
RestartSec=10
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=labelapi
[Install]
WantedBy=multi-user.target