2014-11-22 22:10 GMT+01:00 Simon McVittie <s...@debian.org>: > On 22/11/14 19:54, Matthias Klumpp wrote: >> (Maybe systemd has smarter methods for that case which I don't know of) > > I think RequiresMountsFor is what you're looking for. > > ConditionFileExists is not the right thing here: the Condition* family > more or less means "if the condition is absent, behave as if all the > Exec* were /bin/true". It's a way to do things like skipping a one-time > initialization unit if a flag-file exists, or skipping a virtualization > helper unless systemd is running inside the appropriate technology, or > whatever. > > RequiresMountsFor means "however desirable it might be, this unit isn't > going to work unless the mountpoint ancestors of all these paths exist".
That is very good to know, thank you! (I fortunately used the "wrong" solution only temporarily to debug a startup issue) Looks like nothing speaks against starting ssh as early as possible on systemd systems then. -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/caknhny_riynrkjffuuoho9avm8o8gbdzookqe7rtjpt2nup...@mail.gmail.com