I hit my limits with offline-updates in systemd, so I made a solution... (opens in new tab)
terminusd is a shutdown inhibitor daemon for Linux. Run priority-based commands before reboot or poweroff with clear logs, safe defaults, and production-grade control.
Read the original article