So I understand it's not ideal to just pull the plug on an RPi so I'm trying to make sure that LibreELEC get's shutdown cleanly. I have been playing with getting a UPS working on it and setting it up to automatically shut down when power is removed (The unit I'm using is a LiFePO4wered/Pi3).
Problem is when I remove the power and it shuts it down (after two minutes) I frequently see that when I plug power back in the unit doesn't ever get to the KODI boot screen just the first LibreELEC one. I then have to pull the power throughout the system, after which it reboots just fine.
I have to be able to remove power from the system as it's going to live in a motorhome and may have it's power interuppted at anytime, I have the source for the daemon for the LiFePO4wered so I can mod it but I don't know what to call. It looks like from looking at the source it does this: