summaryrefslogtreecommitdiff
path: root/debian/init
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2003-09-30 17:55:55 +0000
committerColin Watson <cjwatson@debian.org>2003-09-30 17:55:55 +0000
commit26c1dc6eec6b1de5e180f81004492ae09e071da6 (patch)
tree10bebec528d8c5151a00aaecda0309fd2eed3fad /debian/init
parent25a48f58b02e52ab0146e31343be9cad9862eb06 (diff)
Use --retry in init script when restarting rather than sleeping, to make
sure the old process is dead (thanks, Herbert Xu; closes: #212117).
Diffstat (limited to 'debian/init')
-rw-r--r--debian/init3
1 files changed, 1 insertions, 2 deletions
diff --git a/debian/init b/debian/init
index 641b9eff5..552330422 100644
--- a/debian/init
+++ b/debian/init
@@ -59,10 +59,9 @@ case "$1" in
59 restart) 59 restart)
60 check_config 60 check_config
61 echo -n "Restarting OpenBSD Secure Shell server: sshd" 61 echo -n "Restarting OpenBSD Secure Shell server: sshd"
62 start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/sshd.pid 62 start-stop-daemon --stop --quiet --oknodo --retry 30 --pidfile /var/run/sshd.pid
63 check_for_no_start 63 check_for_no_start
64 check_privsep_dir 64 check_privsep_dir
65 sleep 2
66 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
67 echo "." 66 echo "."
68 ;; 67 ;;