rc.d/SERVER patch for review (Reorder to make ldconfig start _before_ SERVER)

Xin LI delphij at freebsd.org
Wed Apr 19 01:03:52 UTC 2006


Hi,

Here is a patch that moves ldconfig before SERVER.  The reason is that:

 - Now we start /usr/local/etc/rc.d scripts in the same order of base
   system rc.d scripts.
 - It is possible that a dynamically linked local daemon is started
   after SERVER, which requires ldconfig to be run before to function
   correctly.
 - According to the current rcorder ldconfig would start _after_ SERVER,
   which makes no guarantee that it was run before actual consumer.

The attachment contains a tested patch that makes ldconfig a dependency
of SERVER, thus makes it available for the application before actual
SERVER daemons.

Any comments?

Thanks in advance!

Cheers,
-------------- next part --------------
Index: SERVERS
===================================================================
RCS file: /home/ncvs/src/etc/rc.d/SERVERS,v
retrieving revision 1.6
diff -u -r1.6 SERVERS
--- SERVERS	19 Feb 2006 08:18:48 -0000	1.6
+++ SERVERS	18 Apr 2006 13:38:33 -0000
@@ -5,7 +5,7 @@
 #
 
 # PROVIDE: SERVERS
-# REQUIRE: mountcritremote abi
+# REQUIRE: mountcritremote abi ldconfig
 
 #	This is a dummy dependency, for early-start servers relying on
 #	some basic configuration.


More information about the freebsd-rc mailing list