monitor.service: Main process exited, code=exited, status=1/FAILURE

Oct 08 01:41:57 hassbian systemd[1]: monitor.service: Main process exited, code=exited, status=1/FAILURE
Oct 08 01:41:57 hassbian systemd[1]: monitor.service: Unit entered failed state.
Oct 08 01:41:57 hassbian systemd[1]: monitor.service: Failed with result 'exit-code'.

sudo systemctl --full edit monitor.service

onde esta

ExecStart=/usr/bin/python3 /home/pi/monitor.py >> /home/pi/Desktop/monitor.log  
mudar para 
ExecStart=/usr/bin/python3 /home/pi/monitor.py &

e adicionar
[Service]
WorkingDirectory=/home/pi

Comentários

Mensagens populares