[systemd-devel] service dependency on udev

Flavio Leitner fbl at sysclose.org
Wed Apr 20 01:27:27 UTC 2016


On Wed, Apr 20, 2016 at 05:34:49AM +0900, Greg KH wrote:
> On Tue, Apr 19, 2016 at 05:25:09PM -0300, Flavio Leitner wrote:
> > 
> > Hello,
> > 
> > I have a service that needs to start after all the devices (network
> > cards at least) have been properly processed by udev.  Pretty much
> > like the old 'network' sysv script.
> > 
> > Any suggestion?
> 
> How do you define "all the devices"?  That's not very event driven,
> which is the issue you are probably having here.

When the vswitch starts, it will look for the interfaces configured
in the database and will try to add them to the data path.  If the
device is not present (yet) it is considered an error.

> Why not just trigger your service after the needed network device is
> found?

Well, it can be for multiple devices as well.

-- 
fbl



More information about the systemd-devel mailing list