Browse Source

A better place for sshd; pointed out by millert

OPENBSD_3_5
deraadt 21 years ago
parent
commit
4c48325ab9
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      src/etc/rc

+ 5
- 5
src/etc/rc View File

@ -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 # System startup script run by init on autoboot
# or after single-user. # or after single-user.
@ -430,10 +430,6 @@ fi
echo -n starting network daemons: 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. # $routed_flags are imported from /etc/rc.conf.
# If $routed_flags == NO, routed isn't run. # If $routed_flags == NO, routed isn't run.
if [ "X${routed_flags}" != X"NO" ]; then 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 echo -n ' inetd'; inetd
fi 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; # $rarpd_flags is imported from /etc/rc.conf;
# If $rarpd_flags == NO or /etc/ethers doesn't exist, then # If $rarpd_flags == NO or /etc/ethers doesn't exist, then
# rarpd isn't run. # rarpd isn't run.


Loading…
Cancel
Save