diff options
author | Colin Watson <cjwatson@debian.org> | 2003-09-30 17:55:55 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2003-09-30 17:55:55 +0000 |
commit | 26c1dc6eec6b1de5e180f81004492ae09e071da6 (patch) | |
tree | 10bebec528d8c5151a00aaecda0309fd2eed3fad /debian/init | |
parent | 25a48f58b02e52ab0146e31343be9cad9862eb06 (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/init | 3 |
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 | ;; |