[systemd-devel] network consuming user services

Lennart Poettering lennart at poettering.net
Wed May 2 15:58:32 PDT 2012


On Wed, 02.05.12 15:40, David Strauss (david at davidstrauss.net) wrote:

> 
> On Wed, May 2, 2012 at 1:19 PM, Sebastian Tramp
> <mail at sebastian.tramp.name> wrote:
> > Are there existing service files which solve a similar or the same issue?
> 
> You may want a target [1]. There is already a network target, but I
> believe it comes up before NetworkManager fully initializes all
> interfaces. 

Well, by default we don't delay boot until NM signals that some network
devices have been configured. But if you want that you can do that
simply by enabling NetworkManager-wait-online.service, which then delays
network.target accordingly.

> I would consider adding a script that fires
> network-fully-up.target once NetworkManager finishes [2]. This would
> allow any service to install as "WantedBy" that target.

network.target should be sufficient for that.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list