17 lines
405 B
Desktop File
17 lines
405 B
Desktop File
[Unit]
|
|
Description=Label printer webservice
|
|
ConditionPathExists=/home/pi/label_printer
|
|
After=network.target
|
|
[Service]
|
|
Type=simple
|
|
User=pi
|
|
Group=lp
|
|
WorkingDirectory=/home/pi/label_printer
|
|
ExecStart=sh -c "/bin/python3 app.py 2>&1 | tee /home/pi/log/labelprinter.log"
|
|
Restart=on-failure
|
|
RestartSec=10
|
|
StandardOutput=syslog
|
|
StandardError=syslog
|
|
SyslogIdentifier=labelapi
|
|
[Install]
|
|
WantedBy=multi-user.target
|