Bug 190447

Summary: sshd is loaded too late in startup
Product: Base System Reporter: bc979
Component: confAssignee: Kurt Jaeger <pi>
Status: Open ---    
Severity: Affects Only Me CC: cem, dch, emaste, me, pi, will
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
move sshd earlier into the startup sequence none

Description bc979 2014-06-01 22:24:02 UTC
sshd is started after many of the optional ports that could cause issues during boot.  If one of them hangs, then you cannot get into the system to figure out what happened as sshd is not available yet.

Environment:
FreeBSD master.lafn.org 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC 2013     root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

How-To-Repeat:
Setup something in /usr/local/etc/rc.d that will not complete and boot the system.

Fix:
add the line:
        # BEFORE: mail

to /etc/rc.d/sshd.  That will cause sshd to load earlier in the sequence and it should be available if problems occur with one of the ports.
Comment 1 Kurt Jaeger freebsd_committer 2015-09-23 11:04:00 UTC
Created attachment 161300 [details]
move sshd earlier into the startup sequence
Comment 2 Kurt Jaeger freebsd_committer 2015-09-23 11:07:46 UTC
See

https://lists.freebsd.org/pipermail/freebsd-stable/2015-September/083403.html

and follow-ups.
Comment 3 Conrad Meyer freebsd_committer 2017-01-07 23:00:02 UTC
(In reply to Kurt Jaeger from comment #2)

Several anecdotes;  some suggestions and one concern (DES).  But no objections to the principal.  Can we go ahead and commit something?
Comment 4 Kurt Jaeger freebsd_committer 2018-09-19 04:44:22 UTC
Another request:

https://lists.freebsd.org/pipermail/freebsd-arm/2018-September/018885.html