actually easy to implement although should not be have to put in that position.
a/c can time out on certain items while in flight (meaning next flight puts it over hours, good example is batteries timing out) so upon landing a/c is grounded and no tdmi/mel issued until addressed.
so flight and mtx planning would stop a/c at a mtx base before that time came close and reboot it.
meanwhile engineers should be scrambling to fix this or be getting fired.