summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-03-02 16:11:11 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-03-02 16:11:11 +0000
commitf32f33d8ea58cfc3c95893a51e64cf0d4ac4de1b (patch)
tree5e98626a3737a6cff388b838be0f520507b88784
parente6328e696c69672422ca207c2f51ac8be93403eb (diff)
A better place for sshd; pointed out by millert
-rw-r--r--etc/rc10
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/rc b/etc/rc
index 76789e117a5..82751789f4f 100644
--- a/etc/rc
+++ b/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.