Re: [systemd-devel] Detecting Systemd crash

2024-02-05 Thread Mantas Mikulėnas
On Mon, Feb 5, 2024, 14:54 Lennart Poettering wrote: > On So, 04.02.24 00:06, David Timber (d...@dev.snart.me) wrote: > > > 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,

Re: [systemd-devel] Detecting Systemd crash

2024-02-05 Thread Lennart Poettering
On Sa, 03.02.24 16:55, Álvaro Cebrián Juan (acebrianj...@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

Re: [systemd-devel] Detecting Systemd crash

2024-02-05 Thread Lennart Poettering
On Mo, 05.02.24 13:54, Lennart Poettering (lenn...@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

Re: [systemd-devel] Detecting Systemd crash

2024-02-05 Thread Lennart Poettering
On So, 04.02.24 00:06, David Timber (d...@dev.snart.me) wrote: > Systemd crashed on me the other day. I was writing up some Systemd units and > testing them out by daemon-reload every time I wanted to test them out. Not > the best way to go on about, I know. My bad abusing Systemd to the point of

Re: [systemd-devel] Detecting Systemd crash

2024-02-05 Thread František Šumšal
On 2/3/24 16:06, David Timber wrote: Systemd crashed on me the other day. I was writing up some Systemd units and testing them out by daemon-reload every time I wanted to test them out. Not the best way to go on about, I know. My bad abusing Systemd to the point of crashing. Perhaps it was

Re: [systemd-devel] Detecting Systemd crash

2024-02-05 Thread František Šumšal
On 2/3/24 16:55, Álvaro Cebrián Juan 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

Re: [systemd-devel] Detecting Systemd crash

2024-02-03 Thread Álvaro Cebrián Juan
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

[systemd-devel] Detecting Systemd crash

2024-02-03 Thread David Timber
Systemd crashed on me the other day. I was writing up some Systemd units and testing them out by daemon-reload every time I wanted to test them out. Not the best way to go on about, I know. My bad abusing Systemd to the point of crashing. Perhaps it was just a bit flip that caused this.