<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>Hi Harald,<br/>
</div>
<div>
<div>> what exactly does "/usr/local/bin/wait_borg"?</div>
<div>Small script which terminates whn no "borg" processes exist any more.</div>
<div><br/>
> why are the no dependecnies to the services it waits for?</div>
<div>The process it waits for is not a service but a normal user program.</div>
<div> </div>
<div>> "TimeoutStopSec=600" alone does nothing then prevent systemd kills the<br/>
> whole service bfore that timeout is reached at shutdown</div>
<div>You mean at shutdown this timeout is ignored?</div>
<div> </div>
<div>Regards,</div>
<div>Ralf</div>
</div>
<div> </div>
<div>
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Sonntag, 02. September 2018 um 16:17 Uhr<br/>
<b>Von:</b> "Reindl Harald" <h.reindl@thelounge.net><br/>
<b>An:</b> systemd-devel@lists.freedesktop.org<br/>
<b>Betreff:</b> Re: [systemd-devel] blocking service on shutdown</div>
<div name="quoted-content"><br/>
<br/>
Am 02.09.18 um 15:37 schrieb Ralf Sieger:<br/>
> I want my system to pause on shutdown to wait till my backup has<br/>
> finished if it is running.<br/>
> For this I've created this small service:<br/>
> <br/>
> [Unit]<br/>
> Description=borg shutdown wait<br/>
> [Service]<br/>
> Type=oneshot<br/>
> ExecStart=/bin/true<br/>
> RemainAfterExit=true<br/>
> ExecStop=/usr/local/bin/wait_borg<br/>
> TimeoutStopSec=600<br/>
> [Install]<br/>
> WantedBy=multi-user.target<br/>
> <br/>
> I'm using ubuntu 18.04, systemd 237<br/>
> <br/>
> Manually stopping the service via<br/>
> systemctl stop borg_wrapper<br/>
> does wait and thus works.<br/>
> <br/>
> But its not working on normal shutdown/poweroff ...<br/>
> From the logs I can't even see an entry with<br/>
> "Stopping borg shutdown wait" in syslog.<br/>
> <br/>
> Does anyone has an idea?<br/>
<br/>
what exactly does "/usr/local/bin/wait_borg"?<br/>
why are the no dependecnies to the services it waits for?<br/>
<br/>
"TimeoutStopSec=600" alone does nothing then prevent systemd kills the<br/>
whole service bfore that timeout is reached at shutdown<br/>
_______________________________________________<br/>
systemd-devel mailing list<br/>
systemd-devel@lists.freedesktop.org<br/>
<a href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel" target="_blank">https://lists.freedesktop.org/mailman/listinfo/systemd-devel</a></div>
</div>
</div>
</div></div></body></html>