Or drop all brittle c code entirely and replace systemd with kubernetes: https://www.talos.dev/
Just the other day I found a cluster I had inadvertently left running on my macBook using Kind. It literally had three weeks of uptime (running a full stack of services) and everything was still working, even with the system getting suspended repeatedly.