<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hi,</div>
<div> </div>
<div>my service needs to delay the stop of ssh during shutdown.</div>
<div>New ssh connections while my service is still runnign must be accpted, too.</div>
<div> </div>
<div>So far I was able to postpone the stop of ssh and allow new connections:</div>
<div>
<div>[Unit]<br/>
BindsTo=ssh.service getty.target<br/>
After=ssh.service getty.target</div>
<div> </div>
<div>[Service]<br/>
Type=simple<br/>
TimeoutStopSec=600<br/>
ExecStart=/usr/local/bin/rbs<br/>
</div>
<div>[Install]<br/>
WantedBy=multi-user.target<br/>
</div>
<div>The remaining problem is that upon shutdown/restart existing ssh users still get disconnected.</div>
<div>How can I that postpone, too? or, better: what is the missing depdency?</div>
<div> </div>
<div>Any ideas?</div>
<div> </div>
</div>
<div class="signature">Regards,<br/>
<br/>
Ralf</div></div></body></html>