krakenrf/krakensdr_doa

Add clean shutdown button

krakenrf opened this issue · 3 comments

While unlikely, pulling power to the Pi 4 could end up corrupting the SD card.

We should add a shutdown and restart button to the web GUI.

a smoother shutdown and reboot experience would be had by adding the line

ExecStop=/bin/kill -HUP $MAINPID

to the krakensdr.service file (/lib/systemd/system/krakensdr.service).

as it is, sending SIGTERM to the "start.sh" does not much at all and the stop job must timeout (1min30secs) before the control-group is terminated by systemd.

While unlikely, pulling power to the Pi 4 could end up corrupting the SD card.

We should add a shutdown and restart button to the web GUI.

Please do so.
I don't want to do it to poor pi to just pull the plug...

Added in 0dfeb1e