[systemd-devel] EXT: Re: Custom target between basic and multi-user targets

Agrain Patrick patrick.agrain at al-enterprise.com
Tue Apr 9 09:39:45 UTC 2024


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 <lennart at poettering.net> 
Envoyé : jeudi 4 avril 2024 17:28
À : Agrain Patrick <patrick.agrain at al-enterprise.com>
Cc : systemd-devel at 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.agrain at 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


More information about the systemd-devel mailing list