<div dir="ltr">Hi,<div><br></div><div> Internally systemd, does differentiate between</div><div><br></div><div> stop - start</div><div>and</div><div>  restart</div><div><br></div><div> because when you use restart, it preserves any FDs that were saved across the stop and provides it to the start, but does not do the same thing, when the user explictly does a stop/start.</div><div><br></div><div> I think it would be nice if the service was aware of this so that it can know the difference between a fresh start, versus restart with no resources saved. It may not mean anything different for some services, but may mean different things for some service.</div><div><br></div><div>Thanks</div><div>Jana</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 22, 2016 at 2:19 PM, Christian Boltz <span dir="ltr"><<a href="mailto:systemd-devel@cboltz.de" target="_blank">systemd-devel@cboltz.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<span class=""><br>
Am Sonntag, 22. Mai 2016, 21:48:02 CEST schrieb Reindl Harald:<br>
> Am 22.05.2016 um 21:03 schrieb Christian Boltz:<br>
> > I'm already using ExecReload= to reload the profiles (works fine),<br>
> > and hope all users actually read the documentation and use reload<br>
> > (and avoid restart).<br>
> ><br>
> > Please read the paragraph above the ^^^ marker again.<br>
> > The problem is what happens when someone accidently uses restart<br>
><br>
> when someone is using the wrong command - well, he is using the wrong<br>
> command - that's it - acting as root implies someone knows what he is<br>
> doing<br>
<br>
</span>Did you ever hear of "better safe than sorry"?<br>
<br>
*Every* admin will make an error sooner or later, so it's good style to<br>
limit the damage as good as possible.<br>
<br>
In case of AppArmor, the good old initscripts basically mapped "restart"<br>
to "reload", so there was no risk of using the "wrong" command because<br>
both worked in a sane way (= reloading the profiles).<br>
<span class=""><br>
> and something which don't surive a restart in a sane way is<br>
> broken from the very begin<br>
<br>
</span>[first version of my answer censored]<br>
<br>
I hope not everybody on this mailinglist thinks that being different<br>
means being broken ;-)<br>
<br>
BTW: You still didn't answer Andrei's question...<br>
<br>
<br>
Regards,<br>
<br>
Christian Boltz<br>
<span class="HOEnZb"><font color="#888888">--<br>
LGTM? There is a special place in hell for regular expressions.<br>
[ewindisch on <a href="https://github.com/docker/docker/pull/19069" rel="noreferrer" target="_blank">https://github.com/docker/docker/pull/19069</a>]<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
systemd-devel mailing list<br>
<a href="mailto:systemd-devel@lists.freedesktop.org">systemd-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
</div></div></blockquote></div><br></div>