dnh
This commit is contained in:
parent
8721646b29
commit
b635a3b39e
1 changed files with 17 additions and 0 deletions
17
labelapi.service
Normal file
17
labelapi.service
Normal 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
|
Loading…
Reference in a new issue