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

Brooks Davis brooks at one-eyed-alien.net
Wed Apr 19 17:14:14 UTC 2006


On Wed, Apr 19, 2006 at 09:13:49AM +0200, Florent Thoumie wrote:
> On Wed, 2006-04-19 at 01:03 +0000, Xin LI wrote:
> > 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?
> 
> I'd rather like seeing ports rc.d scripts fixed to require either DAEMON
> or LOGIN, depending on if they should run as root or not.

I'd like to see this added to portlint as a warning if possible.  I
haven't looked into it enough to know how hard that would be.

-- Brooks

-- 
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-rc/attachments/20060419/07edeb3e/attachment.pgp


More information about the freebsd-rc mailing list