This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Shutdown and Power Off Delay
#3
(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
Reply


Messages In This Thread
Shutdown and Power Off Delay - by Techstyle - 2025-03-16, 09:27 PM
RE: Shutdown and Power Off Delay - by Sailoog - 2025-03-21, 01:11 PM
RE: Shutdown and Power Off Delay - by Techstyle - 2025-03-21, 03:12 PM
RE: Shutdown and Power Off Delay - by Sailoog - 2025-03-21, 07:38 PM
RE: Shutdown and Power Off Delay - by Techstyle - 2025-03-21, 08:05 PM
RE: Shutdown and Power Off Delay - by DanLXIX - 2025-09-08, 08:57 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)