OpenCPN.
Up until now I have shutdown the Pi using a python script which issues a pkill to OpenCPN, which allows it to close gracefully. I am adding a GPIO controlled PSU to the Pi and I rather liked the idea of the dtoverlay shut down using GPIO pins. It seemed like an neat inbuilt solution. If I can't get the pkill to work on shutdown then I can always just use a GPIO interrupt to manually close things before issuing a shutdown -h now but I like to learn different methods. I have the shutdown.service working now and reporting to the log but the pkill doesn't work. Perhaps the shutdown process is too quick to give time for the app to close?
Up until now I have shutdown the Pi using a python script which issues a pkill to OpenCPN, which allows it to close gracefully. I am adding a GPIO controlled PSU to the Pi and I rather liked the idea of the dtoverlay shut down using GPIO pins. It seemed like an neat inbuilt solution. If I can't get the pkill to work on shutdown then I can always just use a GPIO interrupt to manually close things before issuing a shutdown -h now but I like to learn different methods. I have the shutdown.service working now and reporting to the log but the pkill doesn't work. Perhaps the shutdown process is too quick to give time for the app to close?
Statistics: Posted by jimseng — Wed Jan 01, 2025 7:47 pm