[systemd-devel] Detecting Systemd crash
Lennart Poettering
lennart at poettering.net
Mon Feb 5 12:57:24 UTC 2024
On Mo, 05.02.24 13:54, Lennart Poettering (lennart at poettering.net) wrote:
> you can just use the usual hw watchdog. If pid1 dies it will not ping
> the hw watchdog, and thus a reset is triggered automatically. In fact
> we actually configure the hw watchdog by default these days on hw that
> has it (which are most PCs).
Actually, we don't really, I need to correct myself. We probably
should though, dunno.
See RuntimeWatchdogSec= in systemd-system.conf(5)
>
> > 2: How do I get Systemd to freeze to test such program? I mean, if I kill
> > Systemd, the kernel would crash so I have to somehow tell Systemd to freeze?
>
> Not really, the kernel blocks SIGSTOP for PID1.
>
> Lennart
>
> --
> Lennart Poettering, Berlin
Lennart
--
Lennart Poettering, Berlin
More information about the systemd-devel
mailing list