<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=utf-8">
<meta name="Generator" content="Microsoft Word 15 (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;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.E-MailFormatvorlage18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.E-MailFormatvorlage19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.E-MailFormatvorlage21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#993366;}
.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="DE" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="color:#993366">(forgot to reply to the list)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#993366">According to the manual page Requisite= should honor After= BTW:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#993366"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#993366">       Requisite=<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#993366">           Similar to Requires=. However, if the units listed here are not<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#993366">           started already, they will not be started and the starting of this<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#993366">           unit will fail immediately.  Requisite= does not imply an ordering<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#993366">           dependency, even if both units are started in the same transaction.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#993366">           Hence this setting should usually be combined with After=, to<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#993366">           ensure this unit is not started before the other unit.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#993366"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#993366">So is the doc wrong, or is there some bug?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#993366"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US" style="color:#993366">Kind regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#993366">Ulrich Windl<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US" style="color:#993366"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="mso-fareast-language:DE">From:</span></b><span style="mso-fareast-language:DE"> Windl, Ulrich
<br>
<b>Sent:</b> Thursday, June 5, 2025 2:22 PM<br>
<b>To:</b> 'Mantas Mikulėnas' <grawity@gmail.com><br>
<b>Subject:</b> RE: [EXT] Re: [systemd-devel] Suggestion for " failed with result 'dependency'."<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">H!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">You are right!:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">“systemd[1]: Host and Network Name Lookups is inactive.”<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">The problem is when you grep for your service name, because it’s not present anywhere.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Strangely the message “systemd[1]: Reached target Host and Network Name Lookups.” Appears afterwards.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Doesn’t “After=” play well with “Requisite=”?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Kind regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Ulrich Windl<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="mso-fareast-language:DE">From:</span></b><span style="mso-fareast-language:DE"> Mantas Mikulėnas <grawity@gmail.com>
<br>
<b>Sent:</b> Thursday, June 5, 2025 9:27 AM<br>
<b>To:</b> Windl, Ulrich <u.windl@ukr.de><br>
<b>Subject:</b> [EXT] Re: [systemd-devel] Suggestion for " failed with result 'dependency'."<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On 05/06/2025 10.00, Windl, Ulrich wrote:<span style="mso-fareast-language:DE"><o:p></o:p></span></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Hi!<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">I wrote a simple service that did not start after boot. The joural message was:</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">REST-server.service: Job REST-server.service/start failed with result 'dependency'.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Wouldn’t it be helpful to log WHICH dependency failed? As I started the server meanwhile that information isn’t available any more (it seems).</span><o:p></o:p></p>
</blockquote>
<p>It is logged in the journal, one line above the message you mention. It is merely not tagged with _SYSTEMD_UNIT= for 'systemctl status' to find it.<o:p></o:p></p>
<p style="margin-bottom:12.0pt">Jun 05 10:25:24 frost systemd[1]: test2.service is inactive.<br>
Jun 05 10:25:24 frost systemd[1]: Dependency failed for test.service.<br>
Jun 05 10:25:24 frost systemd[1]: test.service: Job test.service/start failed with result 'dependency'.<o:p></o:p></p>
</div>
</div>
</body>
</html>