service change
This commit is contained in:
parent
d6edf761ac
commit
5b0a0292e1
4 changed files with 134 additions and 5 deletions
|
|
@ -1,12 +1,16 @@
|
|||
[Unit]
|
||||
Description=AutoKanban Thermal Printer Web App
|
||||
After=network.target
|
||||
# Wait for system to fully boot before starting
|
||||
After=multi-user.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=pi
|
||||
Group=pi
|
||||
WorkingDirectory=/home/pi/autokanban
|
||||
# Add delay to avoid boot messages on serial port
|
||||
ExecStartPre=/bin/sleep 10
|
||||
Environment="PATH=/home/pi/.pyenv/versions/autokanban/bin:/usr/local/bin:/usr/bin:/bin"
|
||||
Environment="PYENV_ROOT=/home/pi/.pyenv"
|
||||
ExecStart=/home/pi/.pyenv/versions/autokanban/bin/python /home/pi/autokanban/start_app.py
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue