<div dir="ltr">My understanding is ExecStop will be called before sending SIGTERM to service.<div>if it is true then systemd took 42 sec to initiate stop sequence (calling script in ExecStop) and send SIGTERM to service.</div><div>please correct me if I am wrong</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 18, 2016 at 7:58 PM, Reindl Harald <span dir="ltr"><<a href="mailto:h.reindl@thelounge.net" target="_blank">h.reindl@thelounge.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
Am 18.05.2016 um 16:23 schrieb Pradeepa Kumar:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
I have a script in ExecStop in service file.<br>
In journalctl, The time difference between "Stopping XYZ service " and<br>
logs from my script in ExecStop is 42 sec.<br>
Does that mean systemd itself took long time to start stopping of<br></span>
service?<br>
</blockquote>
<br>
no, it means systemd is only the messenger and your script took 42 seconds to finish<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
On Wed, May 18, 2016 at 5:36 PM, Lennart Poettering<br></span><span class="">
<<a href="mailto:lennart@poettering.net" target="_blank">lennart@poettering.net</a> <mailto:<a href="mailto:lennart@poettering.net" target="_blank">lennart@poettering.net</a>>> wrote:<br>
<br>
    On Wed, 18.05.16 16:00, Pradeepa Kumar (<a href="mailto:cdpradeepa@gmail.com" target="_blank">cdpradeepa@gmail.com</a><br></span><span class="">
    <mailto:<a href="mailto:cdpradeepa@gmail.com" target="_blank">cdpradeepa@gmail.com</a>>) wrote:<br>
<br>
    > Hi experts,<br>
    > I am using systemd v219.<br>
    > I need help with a systemd issue that I am seeing.<br>
    > I see that some times stopping of service is taking long time (42 sec).<br>
    > i checked this in journal logs also.<br>
    >  is this is known issue ?<br>
    > how do i debug this ?<br>
    >  and any solutions ?<br>
<br>
    Well, that depends on the specific service. If a specific service<br>
    takes 42s to shut down, then try figuring out what it does. If there's<br>
    nothing in the journal, then maybe the service maintains its own logs?<br>
    If it does not, see if you can turn on debug logging for it.<br>
<br>
    Either way, that's really a question to ask the maintainers of that<br>
    service, not to systemd upstream.<br>
</span></blockquote>
<br>
<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>
<br></blockquote></div><br></div>