Hello, Thank you Lennart. The target inclusion between basic and multi-user is OK. The list-dependencies shows it as expected. I also add the set-default to foo.target to be able to check it.
>From https://www.freedesktop.org/software/systemd/man/latest/bootup.html, at >this stage, filesystems should be mounted (confirmed by the logs on the serial >console), so normally I should be able to execute any binary as 'root' called >by ExecStart. Is that correct ? Thanks. Best regards, Patrick Agrain -----Message d'origine----- De : Lennart Poettering <lenn...@poettering.net> Envoyé : jeudi 4 avril 2024 17:28 À : Agrain Patrick <patrick.agr...@al-enterprise.com> Cc : systemd-devel@lists.freedesktop.org Objet : EXT: Re: [systemd-devel] Custom target between basic and multi-user targets ** External email - Please consider with caution ** On Do, 04.04.24 14:34, Agrain Patrick (patrick.agr...@al-enterprise.com) wrote: > Hello, > > Is it possible to insert a custom foo.target between basic.target and > multi-user.target by just adding some After/Before/Wants/Requires in > the foo.[target | service] files ? Yes. Lennart -- Lennart Poettering, Berlin