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 rece

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 i

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] systemd-pcrlock Failed to submit super PCR policy

2024-02-05 Thread Lennart Poettering
On Mo, 05.02.24 09:24, Dominick Grift (dominick.gr...@defensec.nl) wrote: Please run "SYSTEMD_LOG_LEVEL=debug systemd-pcrlock make-policy" from the command line, then file a github issue about this, and pastethe output there. Lennart -- Lennart Poettering, Berlin

[systemd-devel] systemd-pcrlock Failed to submit super PCR policy

2024-02-05 Thread Dominick Grift
systemd v255 Debian Testing Linux nimbus 6.6.13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.6.13-1 (2024-01-20) x86_64 GNU/Linux systemd-pcrlock Feb 04 20:00:02 nimbus audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=sys.id:sys.role:sys.subj:s0 msg='unit=systemd-pcrlock-make-p