forked from mattronix/escpos-go-labels
17 lines
384 B
SYSTEMD
17 lines
384 B
SYSTEMD
|
[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
|