[systemd-devel] Detecting Systemd crash
Lennart Poettering
lennart at poettering.net
Mon Feb 5 12:58:28 UTC 2024
On Sa, 03.02.24 16:55, Álvaro Cebrián Juan (acebrianjuan at gmail.com) wrote:
> Great question!
>
> I am very interested in detecting systemd crashes too since I have
> experienced them recently and have been asked to come up with a solution to
> react when a PID1 crash happens.
> In fact, in my recent experiences, a journald crash was enough to render
> the system into an unreliable/degraded state in which some top-level
> applications worked while others didn't.
>
> So adding to David's 1st question, I need to detect systemd and journald
> crashes and then trigger a `systemctl reboot --force --force`
> command
As mentioned elsewhere in this thread just use RuntimeWatchdogSec= in
systemd-system.conf(5)
Lennart
--
Lennart Poettering, Berlin
More information about the systemd-devel
mailing list