From 408d0db0b346043ae190f5e353c72d66e052bcec Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Wed, 17 May 2006 22:25:26 +0000 Subject: * On '/etc/init.d/ssh restart', create /var/run/sshd before checking the server configuration, as otherwise 'sshd -t' will complain about the lack of /var/run/sshd (closes: https://launchpad.net/bugs/45234). --- debian/openssh-server.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'debian/openssh-server.init') diff --git a/debian/openssh-server.init b/debian/openssh-server.init index 552330422..60d974f5d 100644 --- a/debian/openssh-server.init +++ b/debian/openssh-server.init @@ -57,11 +57,11 @@ case "$1" in ;; restart) + check_privsep_dir check_config echo -n "Restarting OpenBSD Secure Shell server: sshd" start-stop-daemon --stop --quiet --oknodo --retry 30 --pidfile /var/run/sshd.pid check_for_no_start - check_privsep_dir start-stop-daemon --start --quiet --pidfile /var/run/sshd.pid --exec /usr/sbin/sshd -- $SSHD_OPTS echo "." ;; -- cgit v1.2.3