escpos-go-labels/labelapi.service

17 lines
366 B
Desktop File

[Unit]
Description=Label Maker API
ConditionPathExists=/home/pi/escpos-go-labels
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
Restart=on-failure
RestartSec=10
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=labelapi
[Install]
WantedBy=multi-user.target