<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Howdy,<div><br></div><div>I’m looking for some clarification on BindsTo as I’m wondering if there’s some clarification required in the doc (1). I think I’m perhaps misinterpreting what the doc is referring to as “active" i.e:</div><div><br></div><div><div>"When used in conjunction with After= on the same unit the behaviour of BindsTo= is even stronger. In this case, the unit bound to strictly has to be in active state for this unit to also be in active state."</div></div><div><br></div><div>The key word here is “active” and perhaps mistakenly, interpret the above that a dependent service will have its starting deferred. To explain:</div><div><br></div><div>Given a service A set up as a notification service i.e.:</div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Type=notify</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>NotifyAccess=all</div></div><div><br></div><div>…and this service takes a few seconds to signal that it is active via:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>systemd-notify —ready</div><div><br></div><div>…and we have service B binding to it:</div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre"> </span>After=A.service</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>BindsTo=A.service</div></div><div><br></div><div>I see a Job B.service/start failed with result ‘dependency’ on startup.</div><div><br></div><div>Shouldn’t systemd cause the start of B to wait until the systemd-notify conveys that A is ready i.e. active? I’d like to offer updating the doc upon clarification.</div><div><br></div><div>Thanks.</div><div><br></div><div>Kind regards,</div><div>Christopher</div><div><br></div><div>(1) <a href="https://www.freedesktop.org/software/systemd/man/latest/systemd.unit.html">https://www.freedesktop.org/software/systemd/man/latest/systemd.unit.html</a></div><div><br></div></body></html>