summaryrefslogtreecommitdiff
path: root/debian/init
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2003-09-01 18:30:12 +0000
committerColin Watson <cjwatson@debian.org>2003-09-01 18:30:12 +0000
commitf045c69060bfdd5cf8759a5f29d7008d02e4de5b (patch)
tree2c0e43be70a2fad5141eaf1885483ae54705ec3e /debian/init
parent7eff9df1678223e1a3427ba621f6c379386f9cce (diff)
Debian release 3.5p1-5.
Diffstat (limited to 'debian/init')
-rw-r--r--debian/init9
1 files changed, 7 insertions, 2 deletions
diff --git a/debian/init b/debian/init
index ea39a8bd0..0eddf722e 100644
--- a/debian/init
+++ b/debian/init
@@ -1,10 +1,15 @@
1#! /bin/sh 1#! /bin/sh
2set -e
2 3
3# /etc/init.d/ssh: start and stop the OpenBSD "secure shell(tm)" daemon 4# /etc/init.d/ssh: start and stop the OpenBSD "secure shell(tm)" daemon
4 5
5test -x /usr/sbin/sshd || exit 0 6test -x /usr/sbin/sshd || exit 0
6( /usr/sbin/sshd -\? 2>&1 | grep -q OpenSSH ) 2>/dev/null || exit 0 7( /usr/sbin/sshd -\? 2>&1 | grep -q OpenSSH ) 2>/dev/null || exit 0
7 8
9if test -f /etc/default/ssh; then
10 . /etc/default/ssh
11fi
12
8check_for_no_start() { 13check_for_no_start() {
9 # forget it if we're trying to start, and /etc/ssh/sshd_not_to_be_run exists 14 # forget it if we're trying to start, and /etc/ssh/sshd_not_to_be_run exists
10 if [ -e /etc/ssh/sshd_not_to_be_run ]; then 15 if [ -e /etc/ssh/sshd_not_to_be_run ]; then
@@ -32,7 +37,7 @@ case "$1" in
32 check_for_no_start 37 check_for_no_start
33 check_privsep_dir 38 check_privsep_dir
34 echo -n "Starting OpenBSD Secure Shell server: sshd" 39 echo -n "Starting OpenBSD Secure Shell server: sshd"
35 start-stop-daemon --start --quiet --pidfile /var/run/sshd.pid --exec /usr/sbin/sshd 40 start-stop-daemon --start --quiet --pidfile /var/run/sshd.pid --exec /usr/sbin/sshd -- $SSHD_OPTS
36 echo "." 41 echo "."
37 ;; 42 ;;
38 stop) 43 stop)
@@ -56,7 +61,7 @@ case "$1" in
56 check_for_no_start 61 check_for_no_start
57 check_privsep_dir 62 check_privsep_dir
58 sleep 2 63 sleep 2
59 start-stop-daemon --start --quiet --pidfile /var/run/sshd.pid --exec /usr/sbin/sshd 64 start-stop-daemon --start --quiet --pidfile /var/run/sshd.pid --exec /usr/sbin/sshd -- $SSHD_OPTS
60 echo "." 65 echo "."
61 ;; 66 ;;
62 67