<div dir="ltr"><div dir="ltr">On Thu, Jul 8, 2021 at 10:12 AM Christian Rohmann <<a href="mailto:christian.rohmann@frittentheke.de">christian.rohmann@frittentheke.de</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p>Hey Silvio,<br>
</p>
<div>On 07/07/2021 20:04, Silvio Knizek
wrote:<br>
</div>
<blockquote type="cite">
<pre>after touching /etc/fstab you're supposed to run `systemctl daemon-
reload` to re-trigger the generators. This is in fact a feature to
announce changes in configuration files to systemd. See
man:systemd.generator for more information.</pre>
</blockquote>
<p>Thanks for the quick reply and the kind hint to the (right)
documentation.</p>
<p><br>
</p>
<p>I am then just wondering why the issue referred to (<a href="https://github.com/systemd/systemd/issues/1741" target="_blank">https://github.com/systemd/systemd/issues/1741</a>)
is still open?<br>
Are there still further plans to make systemd properly recognize
that the inactive unit (pointing to a mount point that is used in
a new and active unit) actually is superseeded and unmounting it
makes now sense as that hits the new, working, active mount.<br></p></div></blockquote><div><br></div><div>I *think* this was supposed to improve with v249:</div><div><br></div><div><a href="https://github.com/systemd/systemd/pull/19322">https://github.com/systemd/systemd/pull/19322</a><br></div><div><a href="https://github.com/systemd/systemd/issues/19983">https://github.com/systemd/systemd/issues/19983</a></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
<p>In any case I'd suggest then is to somehow give a warning to the
user as with changes to the systemd units:<br>
"Warning: myfancyservice.service changed on disk. Run 'systemctl
daemon-reload' to reload units."</p></div></blockquote><div><br></div><div>systemd can't make non-systemd tools (such as `mount`) display warnings.</div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Mantas Mikulėnas</div></div></div>