We use supervisor to ensure the program is started after boot.
- Put the file
solarduino_meta.conf
in/etc/supervisor/conf.d/
, then make sure you are not in/opt/solarduino_venv/solarduino
and runsudo supervisorctl reread && sudo supervisorctl update
.
- To start debugging, just in PyCharm debug the program (it will automatically kill the running instance). To start it again, reboot, or go to
/opt/solarduino_venv/solarduino
and executesudo supervisorctl shutdown
andsudo supervisord -c supervisord.conf && sudo supervisorctl update
. - To stop it manually,
supervisorctl shutdown
.
kex_exchange_identification: read: Connection reset by peer
when connecting via ssh: https://raspberrypi.stackexchange.com/a/102076/106568