This adds a new EMERGENCY_ACTION_SLEEP_5S flag, which when set will delay the emergency action for 5s. This is supposed to be used together with EMERGENCY_ACTION_WARN so that users can actually read the message we output. We enable this with all emergency action requests that already set EMERGENCY_ACTION_WARN, except for the 7x ctrl-alt-del burst reboot, where the user knows what they do and there's no real reason to wait, they don't need to be informed. This also enables both EMERGENCY_ACTION_WARN + EMERGENCY_ACTION_SLEEP_5S for FailureAction= processing of regular units, where these were so far off. (it leaves this off for SuccessAction= however!). This is a good thing to make things more debuggable: if something fails and we reboot this really deserves notification of the user. (For SuccessAction= this logic does not apply, since the shutdown action induced here is apparently intended part of the codeflow, for example in systemd-reboot.service or a similar unit, where the shutdown is goal and not exception and derserves no additional noisy reporting). Inspired by: https://github.com/systemd/systemd/pull/36705#issuecomment-2717014120
System and Service Manager
Details
Most documentation is available on systemd's web site.
Assorted, older, general information about systemd can be found in the systemd Wiki.
Information about build requirements is provided in the README file.
Consult our NEWS file for information about what's new in the most recent systemd versions.
Please see the Code Map for information about this repository's layout and content.
Please see the Hacking guide for information on how to hack on systemd and test your modifications.
Please see our Contribution Guidelines for more information about filing GitHub Issues and posting GitHub Pull Requests.
When preparing patches for systemd, please follow our Coding Style Guidelines.
If you are looking for support, please contact our mailing list, join our IRC channel #systemd on libera.chat or Matrix channel
Stable branches with backported patches are available in the stable repo.
We have a security bug bounty program sponsored by the Sovereign Tech Fund hosted on YesWeHack
Repositories with distribution packages built from git main are available on OBS