Thanks for chiming in! On Fri, Nov 15, 2024 at 10:49:19AM +0100, Thomas Lamprecht wrote: > Am 15.11.24 um 10:34 schrieb Christoph Heiss: > > [..] > > Should it be an enum then? I.e. only allowing certain values such as > > - network-pre.target > > - network.target > > - network-online.target > > - multi-user.target > > Yeah, I would not make it generic, just the two or three most common > orderings, we can then extend it on potential future user demand.
Alright, that was my thought here too. A slight abstraction layer will make things lot less confusing for users. > > I think before network, post network and finished boot, i.e. multi-user > target seem enough for now. Ack! > [..] > > Not sure if we could just use multi-user.target as a default target, but > > systemd *should* pull it in and run it in the right ordering too with > > e.g. {Before,Wants}=network-pre.target ? > > Isn't the WantedBy is more for defining the target the unit itself will > be part of, or? Adapting that might indeed make sense, but a bit to long > ago that I looked into systemd unit ordering/dependency semantics more > closely. > Yeah, about the meaning AFAIU myself. I'll test with multi-user.target, should then work in any case I think. But since we will control the possible ordering targets anyway, it's not a big problem really after all. _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel