summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/openssh
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-connectivity/openssh')
-rw-r--r--meta/recipes-connectivity/openssh/openssh/init12
1 files changed, 6 insertions, 6 deletions
diff --git a/meta/recipes-connectivity/openssh/openssh/init b/meta/recipes-connectivity/openssh/openssh/init
index 34ba0f8460..8887e3af13 100644
--- a/meta/recipes-connectivity/openssh/openssh/init
+++ b/meta/recipes-connectivity/openssh/openssh/init
@@ -36,7 +36,7 @@ check_privsep_dir() {
36} 36}
37 37
38check_config() { 38check_config() {
39 /usr/sbin/sshd -t $SSHD_OPTS || exit 1 39 /usr/sbin/sshd $SSHD_OPTS -t || exit 1
40} 40}
41 41
42export PATH="${PATH:+$PATH:}/usr/sbin:/sbin" 42export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"
@@ -48,19 +48,19 @@ case "$1" in
48 @LIBEXECDIR@/sshd_check_keys 48 @LIBEXECDIR@/sshd_check_keys
49 check_privsep_dir 49 check_privsep_dir
50 start-stop-daemon -S -p $PIDFILE -x /usr/sbin/sshd -- $SSHD_OPTS 50 start-stop-daemon -S -p $PIDFILE -x /usr/sbin/sshd -- $SSHD_OPTS
51 echo "done." 51 echo "done."
52 ;; 52 ;;
53 stop) 53 stop)
54 echo -n "Stopping OpenBSD Secure Shell server: sshd" 54 echo -n "Stopping OpenBSD Secure Shell server: sshd"
55 start-stop-daemon -K -p $PIDFILE -x /usr/sbin/sshd 55 start-stop-daemon -K -p $PIDFILE -x /usr/sbin/sshd
56 echo "." 56 echo "."
57 ;; 57 ;;
58 58
59 reload|force-reload) 59 reload|force-reload)
60 check_for_no_start 60 check_for_no_start
61 @LIBEXECDIR@/sshd_check_keys 61 @LIBEXECDIR@/sshd_check_keys
62 check_config 62 check_config
63 echo -n "Reloading OpenBSD Secure Shell server's configuration" 63 echo -n "Reloading OpenBSD Secure Shell server's configuration"
64 start-stop-daemon -K -p $PIDFILE -s 1 -x /usr/sbin/sshd 64 start-stop-daemon -K -p $PIDFILE -s 1 -x /usr/sbin/sshd
65 echo "." 65 echo "."
66 ;; 66 ;;
@@ -68,7 +68,7 @@ case "$1" in
68 restart) 68 restart)
69 @LIBEXECDIR@/sshd_check_keys 69 @LIBEXECDIR@/sshd_check_keys
70 check_config 70 check_config
71 echo -n "Restarting OpenBSD Secure Shell server: sshd" 71 echo -n "Restarting OpenBSD Secure Shell server: sshd"
72 start-stop-daemon -K -p $PIDFILE --oknodo -x /usr/sbin/sshd 72 start-stop-daemon -K -p $PIDFILE --oknodo -x /usr/sbin/sshd
73 check_for_no_start 73 check_for_no_start
74 check_privsep_dir 74 check_privsep_dir