<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi all,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">hope that is the right forum to raise my question.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m trying to realize a kind of dynamic mandatory / lazy service scenario using systemd.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">This means in details that services are either mandatory or lazy. Mandatory services are started first, once all man. services have been loaded, the lazy ones can be started. It should not occur that a lazy service starts before the last
mandatory one has been started.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">For a static scenario I would define a mandatory target. For all lazy services I would add a Requires and After dependency to this target.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">But in my case, I need a more dynamic scenario. The assignment of services to mandatory or lazy is not fixed. It can be changed while the system is running or in worst case early during boot up. To my understanding I must automatically
adapt the .services files of the services to realize such a scenario which looks a bit complicated to me.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Does anyone know another prettier solution for that. <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks in advance for help!!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Best regards</span><span style="font-size:8.0pt;font-family:"Times New Roman","serif""><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;text-autospace:none"><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Marko Hoyer</span></b><span style="font-size:8.0pt;font-family:"Times New Roman","serif""><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:5.0pt;text-autospace:none"><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:blue">A</span></b><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">dvanced
<b><span style="color:blue">D</span></b>river <b><span style="color:blue">I</span></b>nformation
<b><span style="color:blue">T</span></b>echnology GmbH</span><span style="font-size:8.0pt;font-family:"Arial","sans-serif""><br>
</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Software Group II (ADITG/SW1)</span><span style="font-size:8.0pt;font-family:"Arial","sans-serif"">
<br>
</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Robert-Bosch-Str. 200</span><span style="font-size:8.0pt;font-family:"Arial","sans-serif""><br>
</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">31139 Hildesheim</span><span style="font-size:8.0pt;font-family:"Arial","sans-serif""><br>
</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Germany</span><span style="font-size:8.0pt;font-family:"Arial","sans-serif""><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;text-autospace:none"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Tel. +49 5121 49 6948<br>
Fax +49 5121 49 6999<br>
mhoyer@de.adit-jv.com</span><span style="font-size:8.0pt;font-family:"Times New Roman","serif""><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial","sans-serif"">ADIT is a joint venture company of Robert Bosch GmbH/Robert Bosch Car Multimedia GmbH and DENSO Corporation<br>
Sitz: Hildesheim, Registergericht: Amtsgericht Hildesheim HRB 3438 <br>
Geschäftsführung: Wilhelm Grabow, Katsuyoshi Maeda</span><o:p></o:p></p>
</div>
</body>
</html>