From 4c48325ab9cabf6b96094f60dffff4acf28a4cf3 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Tue, 2 Mar 2004 16:11:10 +0000 Subject: [PATCH] A better place for sshd; pointed out by millert --- src/etc/rc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/etc/rc b/src/etc/rc index 76789e11..82751789 100644 --- a/src/etc/rc +++ b/src/etc/rc @@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.236 2004/03/02 15:56:28 deraadt Exp $ +# $OpenBSD: rc,v 1.237 2004/03/02 16:11:10 deraadt Exp $ # System startup script run by init on autoboot # or after single-user. @@ -430,10 +430,6 @@ fi echo -n starting network daemons: -if [ X"${sshd_flags}" != X"NO" ]; then - echo -n ' sshd'; /usr/sbin/sshd ${sshd_flags}; -fi - # $routed_flags are imported from /etc/rc.conf. # If $routed_flags == NO, routed isn't run. if [ "X${routed_flags}" != X"NO" ]; then @@ -531,6 +527,10 @@ if [ X${inetd} = X"YES" -a -e /etc/inetd.conf ]; then echo -n ' inetd'; inetd fi +if [ X"${sshd_flags}" != X"NO" ]; then + echo -n ' sshd'; /usr/sbin/sshd ${sshd_flags}; +fi + # $rarpd_flags is imported from /etc/rc.conf; # If $rarpd_flags == NO or /etc/ethers doesn't exist, then # rarpd isn't run.