I have a mini pc running Kubernetes (k3s) with homeassistant.
The issue leading to the question
When I do a sudo reboot (forgetting that the home assistant is running) the sqlite database becomes corrupted, presumably because it is writing to it as I am rebooting.
The question
Is there a mechanism to make Ubuntu wait for a service to shut down gracefully, to avoid this in the future?
sudo reboot
, usesudo shutdown -r now
to reboot gracefully. – Jos Mar 29 '23 at 07:32sudo reboot
just a wrapper forsudo shutdown -r now
? – JoSSte Mar 29 '23 at 07:46