Bug 51767

Summary: /etc/rc.d/virecover in wrong order
Product: Base System Reporter: Dominic Mitchell <dom>
Component: binAssignee: Mike Makonnen <mtm>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   

Description Dominic Mitchell 2003-05-04 23:10:00 UTC
	I've been running with rcNG for a while, but I've only just
noticed this problem.  When I rebooted last, I got this message:

Recovering vi editor sessions:/usr/libexec/ld-elf.so.1: Shared object "libsasl2.so.2" not found
.

After a little bit of nosing around, I realised that it's because I
have postfix installed as my MTA, linked against the SASL library.  The
thing that came immediately after that error on my boot sequence was:

ELF ldconfig path: /usr/lib /usr/lib/compat /usr/X11R6/lib /usr/local/lib
a.out ldconfig path: /usr/lib/aout /usr/lib/compat/aout /usr/X11R6/lib/aout

The virecover script was trying to send mail, but failing because
postfix couldn't find its libraries yet.

Fix: 

I guess that the virecover script needs to have ldconfig listed as a
depdendency.  I'm not sure whether any other scripts might need this as
well...
How-To-Repeat: 
* Set up an alternative MTA to the one in the base system.  Ensure that
  it is dynamically linked against something in /usr/local/lib (sasl or
  ldap should do).

* Start editing a file using /usr/bin/vi.

* Kill the vi process from another terminal.

* Reboot the system.

* Watch the errors...
Comment 1 Mike Makonnen freebsd_committer freebsd_triage 2003-05-05 02:15:33 UTC
State Changed
From-To: open->feedback

This should already be fixed in rc.d/ldconfig 1.5. Do you have it? 
If the problem persists can you send me the output of 
# rcorder -k FreeBSD -s nostart /etc/rc.d/* 



Comment 2 Mike Makonnen freebsd_committer freebsd_triage 2003-05-05 02:15:33 UTC
Responsible Changed
From-To: freebsd-bugs->mtm

This should already be fixed in rc.d/ldconfig 1.5. Do you have it? 
If the problem persists can you send me the output of 
# rcorder -k FreeBSD -s nostart /etc/rc.d/*
Comment 3 Mike Makonnen 2003-05-05 10:47:40 UTC
On Mon, 5 May 2003 10:27:01 +0100
dom@happygiraffe.net (Dominic Mitchell) wrote:

> 
> I do have it, I'm afraid:
> 

Ok. This should fix it.


Index: etc/rc.d/virecover
===================================================================
RCS file: /home/ncvs/src/etc/rc.d/virecover,v
retrieving revision 1.4
diff -u -r1.4 virecover
--- etc/rc.d/virecover	21 Feb 2003 09:37:20 -0000	1.4
+++ etc/rc.d/virecover	5 May 2003 09:43:13 -0000
@@ -5,7 +5,7 @@
 #
 
 # PROVIDE: virecover
-# REQUIRE: mountcritremote
+# REQUIRE: mountcritremote ldconfig
 # BEFORE:  DAEMON
 # KEYWORD: FreeBSD NetBSD
 #


Cheers
-- 
Mike Makonnen  | GPG-KEY: http://www.identd.net/~mtm/mtm.asc
mtm@identd.net | D228 1A6F C64E 120A A1C9  A3AA DAE1 E2AF DBCC 68B9
mtm@FreeBSD.Org| FreeBSD - The Power To Serve
Comment 4 Dominic Mitchell 2003-05-05 18:02:03 UTC
On Mon, May 05, 2003 at 05:47:40AM -0400, Mike Makonnen wrote:
> On Mon, 5 May 2003 10:27:01 +0100
> dom@happygiraffe.net (Dominic Mitchell) wrote:
> 
> > 
> > I do have it, I'm afraid:
> > 
> 
> Ok. This should fix it.

Many thanks.  I shall test it on my next reboot!

-Dom
Comment 5 Mike Makonnen freebsd_committer freebsd_triage 2003-05-19 19:13:27 UTC
State Changed
From-To: feedback->closed

This is fixed now.