<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Yes, restart of the whole system.<br/>
</div>
<div class="signature">Regards,<br/>
<br/>
Ralf</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> Samstag, 06. Oktober 2018 um 05:46 Uhr<br/>
<b>Von:</b> "Andrei Borzenkov" <arvidjaar@gmail.com><br/>
<b>An:</b> systemd-devel@lists.freedesktop.org<br/>
<b>Betreff:</b> Re: [systemd-devel] require=? to prevent premature session termination</div>
<div name="quoted-content">05.10.2018 15:52, Ralf Sieger пишет:<br/>
> Hi,<br/>
> my service needs to delay the stop of ssh during shutdown.<br/>
> New ssh connections while my service is still runnign must be accpted, too.<br/>
> So far I was able to postpone the stop of ssh and allow new connections:<br/>
> [Unit]<br/>
> BindsTo=ssh.service getty.target<br/>
> After=ssh.service getty.target<br/>
> [Service]<br/>
> Type=simple<br/>
> TimeoutStopSec=600<br/>
> ExecStart=/usr/local/bin/rbs<br/>
> [Install]<br/>
> WantedBy=multi-user.target<br/>
> The remaining problem is that upon shutdown/restart existing ssh users still get<br/>
> disconnected.<br/>
<br/>
Shutdown/restart of what? The whole system?<br/>
<br/>
> How can I that postpone, too? or, better: what is the missing depdency?<br/>
> Any ideas?<br/>
> Regards,<br/>
><br/>
> Ralf<br/>
><br/>
><br/>
><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><br/>
><br/>
<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>