2025-03-21, 03:12 PM
(2025-03-21, 01:11 PM)Sailoog Wrote: OpenPlotter is already doing that running this service when a shutdown GPIO is defined in openplotter-settings: https://github.com/openplotter/openplott...hutdown.py
but your approach is very interesting. gpio_shutdown_command is not documented anywhere, where did you get it from?
Add -15 argument to your commands to make sure the configuration files are saved before exiting:
pkill -15 opencpn
Thanks for the '-15' I will add it, although, it seems like Openplotter has it covered - I didn't know that, I see your solution is only shutting down OCPN, could the feature request be to add more applications? for me OCPN and Chromium is desirable, but is there a way to safely close all open applications before closing or have check boxes for common ones?
as for "gpio_shutdown_command is not documented anywhere, where did you get it from?"
it must be somewhere... https://www.perplexity.ai/search/my-rasp...7nok1aA6Tg

