<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><p class="MsoNormal">Hi All,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I wanted to start a service before the networking service
comes up and I found out that you need to add dependency on network-pre.target
as Before and Wants in your service file. However, doing so resulted in killing
the networking service as my service unit was implicitly adding dependency on
basic.target resulting in a loop. </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">After doing more research I found DefaultDependency=no
removes the dependency on basic.target and it does not create a cycle. However,
adding DefaultDependency=no introduces other problems such as pre-mature start
of my service when some of the system needed services are not up.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Is there a way to add dependency on network-pre.target and
don’t add DefaultDependency=no in the unit without killing the networking
service? </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Thanks,</p>
<p class="MsoNormal">Viraj</p></div><div><br></div>-- <br><div class="gmail_signature"><font face="tahoma, sans-serif" color="#3333ff">Regards,</font><div><font face="tahoma, sans-serif" color="#3333ff">Viraj Raiyani</font></div><div><font face="tahoma, sans-serif" color="#3333ff">Phone : 313-408-9220</font></div><div><font face="tahoma, sans-serif" color="#3333ff"><a href="http://www.linkedin.com/in/virajraiyani" target="_blank">http://www.linkedin.com/in/virajraiyani</a></font></div></div>
</div>