2022-02-06 10:19:03 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Luniebox Daemon
|
|
|
|
|
|
|
|
[Service]
|
2022-02-08 20:09:26 +01:00
|
|
|
User=pi
|
|
|
|
Group=pi
|
2022-02-06 10:19:03 +01:00
|
|
|
WorkingDirectory=/home/pi/luniebox/application
|
|
|
|
ExecStart=/home/pi/luniebox/application/venv/bin/python daemon.py
|
2022-02-08 20:09:26 +01:00
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=15
|
|
|
|
#FailureAction=/home/pi/luniebox/application/venv/bin/python daemon-failure.py
|
2022-02-06 10:19:03 +01:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|