diff options
author | mtm <mtm@FreeBSD.org> | 2003-07-13 01:49:07 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2003-07-13 01:49:07 +0000 |
commit | e2e7d96885ff05e5505952a9196276b22fd3c2db (patch) | |
tree | 829d50cb9955c414a4aa05cdab2179b919f0d6fc /etc/rc.d/sshd | |
parent | f98596512043a2b2e8207da073f085954bc223a9 (diff) | |
download | FreeBSD-src-e2e7d96885ff05e5505952a9196276b22fd3c2db.zip FreeBSD-src-e2e7d96885ff05e5505952a9196276b22fd3c2db.tar.gz |
Not everyone uses the base system sshd. They can use the sshd_program
variable in rc.conf to have sshd from ports (or somewhere else) installed.
So, don't make the sshd_config for the base system a required file
to start the service.
PR: conf/45766
Diffstat (limited to 'etc/rc.d/sshd')
-rwxr-xr-x | etc/rc.d/sshd | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/etc/rc.d/sshd b/etc/rc.d/sshd index 416ab7f..0e4939c 100755 --- a/etc/rc.d/sshd +++ b/etc/rc.d/sshd @@ -12,12 +12,16 @@ name="sshd" rcvar=`set_rcvar` -command="/usr/sbin/${name}" keygen_cmd="sshd_keygen" start_precmd="sshd_precmd" pidfile="/var/run/${name}.pid" -required_files="/etc/ssh/sshd_config" extra_commands="keygen reload" +case ${OSTYPE} in +NetBSD) + command="/usr/sbin/${name}" + required_files="/etc/ssh/sshd_config" + ;; +esac sshd_keygen() { |