Re: Services with multiple pre-requisites

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mo, 21.12.20 17:23, freedesktop@xxxxxxxxxxxxx (freedesktop@xxxxxxxxxxxxx) wrote:

> Perhaps I'm missing something, but that's still not doing what I expect.
>
> Here's what I have...
>
> #----- /etc/systemd/system/first.target -----#
> [Unit]
> Description=Started first
> Wants=third.service
>
> #----- /etc/systemd/system/second.target -----#
> [Unit]
> Description=Started second
> Wants=third.service
>
> #----- /etc/systemd/system/third.service -----#
> [Unit]
> Description=Third service
> Requisite=first.target second.target

Add "After=first.target second.target" here as well. Ordering and
requirement deps are orthogonal in systemd. See documentation.

Lennart

--
Lennart Poettering, Berlin
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux