[systemd-devel] Have I got circular dependencies?
Wols Lists
antlists at youngman.org.uk
Mon Jan 24 12:21:51 UTC 2022
On 24/01/2022 11:08, Kevin P. Fleming wrote:
> According to 'man systemd.unit' it goes in the '[Unit]' section, like
> all other dependency statements.
Thank you very much. The usual problem of "where's the docu I'm looking
for?" :-)
Cheers,
Wol
>
> On Sun, Jan 23, 2022 at 3:15 PM Wols Lists <antlists at youngman.org.uk> wrote:
>>
>> On 23/01/2022 19:44, Andrei Borzenkov wrote:
>>> Where dependency to /home comes from? It is not in your unit file.
>>
>> If it thinks my unit depends on /home, that's wrong. /home comes from
>> fstab, and the partition is not available until AFTER my service has
>> run. Home is on an lv, which is on raid, which is on dm-integrity, which
>> isn't available until my service has turned it on ...
>>>
>>> Otherwise normal services are ordered by default after sysinit.target and
>>> local file systems are ordered before sysinit.target so you have loop. Add
>>> DefaultDependencies=no to your service definition.
>>
>> Thanks. I presume that goes in the [Install] section? I can find plenty
>> of stuff telling me WHAT DefaultDependencies is, but nothing I can
>> understand that tells me WHERE it goes.
>>
>> Thanks,
>> Cheers,
>> Wol
More information about the systemd-devel
mailing list