Re: [systemd-devel] More documentation on subtle differences between BindsTo/PartOf re. auto-restart

2025-07-26 Thread Andrei Borzenkov
26.07.2025 22:31, Kevin P. Fleming wrote: On Sat, Jul 26, 2025, at 13:07, Maximilian Bosch wrote: Now, my plan is to actually contribute a fix for this, but upon starting I realized, that I need some pointers: * This seems like a little bit of a special case: you need bidirectional dependenc

Re: [systemd-devel] More documentation on subtle differences between BindsTo/PartOf re. auto-restart

2025-07-26 Thread Kevin P. Fleming
On Sat, Jul 26, 2025, at 13:07, Maximilian Bosch wrote: > Now, my plan is to actually contribute a fix for this, but upon starting > I realized, that I need some pointers: > > * This seems like a little bit of a special case: you need bidirectional > dependencies and at least one unit involved ne

[systemd-devel] More documentation on subtle differences between BindsTo/PartOf re. auto-restart

2025-07-26 Thread Maximilian Bosch
Hi! Before I get to the actual question, a bit of context: for NixOS we've recently been restructuring the units around PostgreSQL[0]. On our first iteration we've got # postgresql.target [Install] WantedBy=multi-user.target [Unit] BindsTo=postgresql.service BindsTo=postg