We use supervisor to ensure the program is started after boot.
- Put the file
solarduino_meta.confin/etc/supervisor/conf.d/, then make sure you are not in/opt/solarduino_venv/solarduinoand 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/solarduinoand executesudo supervisorctl shutdownandsudo supervisord -c supervisord.conf && sudo supervisorctl update. - To stop it manually,
supervisorctl shutdown.
kex_exchange_identification: read: Connection reset by peerwhen connecting via ssh: https://raspberrypi.stackexchange.com/a/102076/106568