Re: [systemd-devel] switch-root, init, SIGHUP

2025-01-20 Thread Brian Masney
Hey James, On Mon, Jan 20, 2025 at 1:21 PM James Muir (jamesmui) wrote: > I think the SIGHUP must come from the new PID 1. I don't know if this will help you, however here is a program that I wrote last year that starts a service in the initramfs, it survives the systemd killing spree during the

Re: [systemd-devel] switch-root, init, SIGHUP

2025-01-20 Thread Brian Masney
Hi James, On Sat, Jan 18, 2025 at 05:40:17AM +, James Muir (jamesmui) wrote: > I have a program, init-jm, that forks and executes /usr/lib/systemd/systemd > in the parent (using execl() ) while the child collects some stats in a loop. > > The child sets its argv[0][0] to ‘@’. > > init-jm is

Re: [systemd-devel] Exploring Minimal Systemd in Initramfs for Faster Boot

2024-09-30 Thread Brian Masney
On Mon, Sep 30, 2024 at 4:35 AM Lennart Poettering wrote: > While we do support binaries that stay running from the initrd, it's > typically something I'd suggest people to avoid, and if they do it > anyway, then at least only for a short time (i.e. terminate once boot > is complete or so) In cas

Re: [systemd-devel] Exploring Minimal Systemd in Initramfs for Faster Boot

2024-09-26 Thread Brian Masney
On Thu, Sep 26, 2024 at 06:43:40AM +, Umut Tezduyar Lindskog wrote: > Have you discussed moving cntvct-log to systemd-analyze? IMHO, systemd > can have better control when the target is reached to record the wall > time. No that doesn't make sense right now because cntvct looks at specific har

Re: [systemd-devel] Exploring Minimal Systemd in Initramfs for Faster Boot

2024-09-25 Thread Brian Masney
On Wed, Sep 25, 2024 at 03:53:36PM +, dharm...@microchip.com wrote: > yes something similar to this, I will experiment this and get back to you. > > and I think since the egt service and its libraries depend on the full > rootfs, integrating initramfs might not provide significant benefits in

Re: [systemd-devel] "primary" Condition for drbd?

2024-06-13 Thread Brian Masney
On Thu, Jun 13, 2024 at 10:08 AM Lennart Poettering wrote: > On Do, 13.06.24 11:27, Harald Dunkel (harald.dun...@aixigo.com) wrote: > > I missed to mention, drbdadm does know: > > > > # drbdadm role space > > Primary/Secondary > > > > meaning "space" is primary on this host. You can al

[systemd-devel] Looking for guidance about starting a systemd service inside the initrd and having it persist after rootfs is mounted

2023-07-13 Thread Brian Masney
I am working on a project that has very strict boot time requirements in order to have a custom service started within a set time period. Waiting for the kernel to initialize the storage controller and mount the root filesystem takes too much of the allocated time budget. There's various boot speed