[Unit] Description=Luniebox Daemon [Service] User=pi Group=pi WorkingDirectory=/home/pi/luniebox/application ExecStart=/home/pi/luniebox/application/venv/bin/python daemon.py Restart=on-failure RestartSec=15 #FailureAction=/home/pi/luniebox/application/venv/bin/python daemon-failure.py [Install] WantedBy=multi-user.target