2020-03-23, 03:34 PM
(2020-03-22, 11:14 AM)holgerw Wrote: Maybe it is better to quit OpenCPN first, often it needs some time to close.
I had it restet to the default settings some time, and this is really annoiing!
After the wait (10sek?) it is safe to do the "shutdown -h now".
The shutdown command is designed to perform a clean system shutdown, halting or powering down the system only after all running applications have been cleanly stopped. It shouldn't be necessary to close OpenCPN separately, but if you are concerned about that, you could add "killall opencpn" to the script, which would send SIGTERM to the application and close it down gracefully prior to sending "shutdown -h now".