[Bug 290357] rc.subr: changed sleep leads to very long shutdown times

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 19 Oct 2025 08:07:27 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290357

            Bug ID: 290357
           Summary: rc.subr: changed sleep leads to very long shutdown
                    times
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: conf
          Assignee: bugs@FreeBSD.org
          Reporter: d8zNeCFG@aon.at

Scenario:
- FreeBSD stable/14 at b339da5b23e8 plus minor local patches
- Shutting down the system

Result:
- For every process, the shutdown script waits one second before proceeding to
the next one. This results in very long shutdown times for systems with many
running functions from /etc/rc.d and /usr/local/etc/rc.d.

Note:
- This was introduced in 5953e7c98427 and propagated to all branches.
- I am currently running with .2 seconds in /etc/rc.subr. I assume that much
lower values would also work well, especially on modern machines.

-- Martin

-- 
You are receiving this mail because:
You are the assignee for the bug.