Bug 190447 - sshd is loaded too late in startup
Summary: sshd is loaded too late in startup
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Kurt Jaeger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-01 22:24 UTC by bc979
Modified: 2018-09-22 14:32 UTC (History)
6 users (show)

See Also:


Attachments
move sshd earlier into the startup sequence (265 bytes, patch)
2015-09-23 11:04 UTC, Kurt Jaeger
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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