From 0334ce32304e9ba2a10ee5ca49ca6e8ff3ba6cf4 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Mon, 12 Aug 2013 15:53:56 +0200 Subject: When running under Upstart, only consider the daemon started once it is ready to accept connections (by raising SIGSTOP at that point and using "expect stop"). --- debian/openssh-server.ssh.upstart | 3 +++ 1 file changed, 3 insertions(+) (limited to 'debian/openssh-server.ssh.upstart') diff --git a/debian/openssh-server.ssh.upstart b/debian/openssh-server.ssh.upstart index 21a6bc50b..10ab744f1 100644 --- a/debian/openssh-server.ssh.upstart +++ b/debian/openssh-server.ssh.upstart @@ -11,6 +11,9 @@ respawn respawn limit 10 5 umask 022 +env SSH_SIGSTOP=1 +expect stop + # 'sshd -D' leaks stderr and confuses things in conjunction with 'console log' console none -- cgit v1.2.3