Bug 262372 - rc.d/localpkg should be started after rc.d/local
Summary: rc.d/localpkg should be started after rc.d/local
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: 12.3-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-06 01:00 UTC by firk
Modified: 2022-03-06 01:00 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description firk 2022-03-06 01:00:06 UTC
I don't know if it was specified somewhere before, but up to 11.4 rc.d/localpkg (which runs old-style /usr/local/etc/rc.d scripts) was run after rc.d/local (which runs /etc/rc.local). So, custom local services was able to depend on custom local preinitialization script. In 12.3 this became broken.

--- libexec/rc/rc.d/localpkg.orig       2022-02-13 15:31:10.000000000 +0300
+++ libexec/rc/rc.d/localpkg    2022-03-06 03:34:50.440656000 +0300
@@ -4,7 +4,7 @@
 #

 # PROVIDE: localpkg
-# REQUIRE: sysvipc linux
+# REQUIRE: sysvipc linux local
 # BEFORE:  securelevel
 # KEYWORD: shutdown