[systemd-devel] Restarting sshd

Miklos Vajna vmiklos at frugalware.org
Tue Jan 11 02:24:47 PST 2011


On Tue, Jan 11, 2011 at 02:12:13PM +0500, "Alexander E. Patrakov" <patrakov at gmail.com> wrote:
> sshd.service has the following problem, which is a regression from a 
> traditional SysV setup and which is not present in sshd.socket + 
> sshd at .service. Yes, I know that the use of this service is discouraged.
> 
> The problem is that one can no longer safely restart sshd while 
> connected via ssh. If one attempts to do so via "systemctl restart 
> sshd.service", all ssh sessions become disconnected. Also, the service 
> cannot be reloaded except by sending SIGHUP to the sunning sshd manually.
> 
> So, I propose the following improved version of sshd.service, with the 
> ability to reload the service, with safety regarding "systemctl restart 
> sshd.service", and with protection against crashes:

Great! :) I did not hit this problem yet, but thought about it'll be an
issue.

Is there any chance this could be sumitted to the maintainers of the
portable openssh? Having a different version for each distro is not
something we want for sure.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20110111/8b4b0ede/attachment.pgp>


More information about the systemd-devel mailing list