summaryrefslogtreecommitdiff
path: root/debian/openssh-server.init
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2006-05-17 22:25:26 +0000
committerColin Watson <cjwatson@debian.org>2006-05-17 22:25:26 +0000
commit408d0db0b346043ae190f5e353c72d66e052bcec (patch)
tree90b8da203abc562043577f2720ac03a19f7619d3 /debian/openssh-server.init
parentcba2418590415b8905eb906832a6929e3df04b8d (diff)
* 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).
Diffstat (limited to 'debian/openssh-server.init')
-rw-r--r--debian/openssh-server.init2
1 files changed, 1 insertions, 1 deletions
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
57 ;; 57 ;;
58 58
59 restart) 59 restart)
60 check_privsep_dir
60 check_config 61 check_config
61 echo -n "Restarting OpenBSD Secure Shell server: sshd" 62 echo -n "Restarting OpenBSD Secure Shell server: sshd"
62 start-stop-daemon --stop --quiet --oknodo --retry 30 --pidfile /var/run/sshd.pid 63 start-stop-daemon --stop --quiet --oknodo --retry 30 --pidfile /var/run/sshd.pid
63 check_for_no_start 64 check_for_no_start
64 check_privsep_dir
65 start-stop-daemon --start --quiet --pidfile /var/run/sshd.pid --exec /usr/sbin/sshd -- $SSHD_OPTS 65 start-stop-daemon --start --quiet --pidfile /var/run/sshd.pid --exec /usr/sbin/sshd -- $SSHD_OPTS
66 echo "." 66 echo "."
67 ;; 67 ;;