label_printer/label_printer.service

18 lines
425 B
SYSTEMD
Raw Permalink Normal View History

2024-09-25 22:24:25 +02:00
[Unit]
Description=Label printer webservice
ConditionPathExists=/home/techinc/label_printer
2024-09-25 22:24:25 +02:00
After=network.target
[Service]
Type=simple
User=techinc
2024-09-25 22:24:25 +02:00
Group=lp
WorkingDirectory=/home/techinc/label_printer
ExecStart=sh -c "/bin/python3 app.py 2>&1 | tee /home/techinc/log/labelprinter.log"
2024-09-25 22:24:25 +02:00
Restart=on-failure
RestartSec=10
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=labelapi
[Install]
WantedBy=multi-user.target