[systemd-devel] Delaying device service creation

Francis Moreau francis.moro at gmail.com
Tue Jun 30 08:37:39 PDT 2015


Hi,

I have a service 'A' which creates a device 'X' and does some
configuring of the device. The device is created in a 'ExecStart='
directive whereas its configuration happens during 'ExecStartPost='.

But it seems that as soon as the device is seen by systemd, it creates
the corresponding device service and starts all services that depeneds
on this device.

However this happens even if service 'A' hasn't finished to configure
the device yet.

I tried to add 'Before=X.device' in 'A' service file, but it doesn't
seem to have any effects.

Could anybody help me ?

Thanks


More information about the systemd-devel mailing list