[systemd-devel] StopWhenUnneeded=yes/PropagatesStopTo= unless unit was started manually

2025-03-16 Thread Philippe Cerfon
Hey. I have a unit foo which depends on a .mount unit. What I would like to have was, that if foo is stopped, the .mount is stopped, too, but only if it wasn't started/mounted manually. If I use StopWhenUnneeded=true in the .mount, then mounting it manually doesn't work anymore (well it gets imm

[systemd-devel] .target dependency ordering

2025-03-17 Thread Philippe Cerfon
Hey. I have two scenarios where I'm not quite sure whether I understand things correctly. 1) I'd like to start a firewall service *before* networking is brought up. My understanding was hat this would best be done in the firewall.service unit by e.g. [Unit] Before=network-pre.target [Install] Re