Re: Starting a service before any networking

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

 



On Thu, 28 Sept 2023 at 11:16, Mark Rogers <mark@xxxxxxxxxxxxxxxxxxxx> wrote:
DefaultDependencies=no

FWIW I tried:
    DefaultDependencies=no
    Before=network-pre.target
    Wants=network-pre.target
and
    DefaultDependencies=no
    Before=network-pre.target
    Wants=network-pre.target local-fs.target

.. and in both cases my unit still started after dhcpcd (albeit that with my "ip link set eth0 down/up" hack the network worked OK).

I have left it as
    DefaultDependencies=no
    Before=network-pre.target dhcpcd.service
    Wants=network-pre.target local-fs.target

.. although a lot of that seems redundant, really it's just the Before=dhcpcd.service that seems to be achieving anything.

--
Mark Rogers


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

  Powered by Linux