I am trying to implement a fail-safe systemd service that checks for internet connection and restarts the cellular modem (GPIO) and ModemManager if something fails. However most of the time a full system reboot is the only way of getting internet up and running again after some edge cases.
However I do not want to make a full reboot as I will loose system time synchronisation which is very important for my application.
So I would like to mimic a device reboot as much as possible without loosing time synchronisation.
Any ideas on how that can be done?