<p dir="ltr">Options:</p>
<p dir="ltr">- Configure it as part of ExecStart if possible.</p>
<p dir="ltr">- Configure it using a second .service unit (oneshot), and depend on that one.</p>
<p dir="ltr">- Do something with udev to mark unconfigured devices with SYSTEMD_READY=0? Not sure how. But if you can do this, it'll directly affect the "readiness" of the corresponding .device unit.</p>
<br><div class="gmail_quote"><div dir="ltr">On Tue, Jun 30, 2015, 18:37 Francis Moreau <<a href="mailto:francis.moro@gmail.com">francis.moro@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I have a service 'A' which creates a device 'X' and does some<br>
configuring of the device. The device is created in a 'ExecStart='<br>
directive whereas its configuration happens during 'ExecStartPost='.<br>
<br>
But it seems that as soon as the device is seen by systemd, it creates<br>
the corresponding device service and starts all services that depeneds<br>
on this device.<br>
<br>
However this happens even if service 'A' hasn't finished to configure<br>
the device yet.<br>
<br>
I tried to add 'Before=X.device' in 'A' service file, but it doesn't<br>
seem to have any effects.<br>
<br>
Could anybody help me ?<br>
<br>
Thanks<br>
_______________________________________________<br>
systemd-devel mailing list<br>
<a href="mailto:systemd-devel@lists.freedesktop.org" target="_blank">systemd-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
</blockquote></div>