Subject: bin/217: /var/run cleanup and ldconfig should be run before any daemons
To: None <gnats-admin>
From: None <thomas@mathematik.uni-Bremen.de>
List: netbsd-bugs
Date: 04/08/1994 19:35:02
>Number:         217
>Category:       bin
>Synopsis:       /var/run cleanup and ldconfig should be run before any daemons
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin (Utility Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Apr  8 19:35:01 1994
>Originator:     Thomas Eberhardt
>Organization:
CeVis, University of Bremen, Germany
>Release:        
>Environment:
	
System: NetBSD ed209 0.9a ED209#0 i386

Machine: i386
>Description:
	IMHO the /var/run cleanup and ldconfig should be run before
	starting any daemons.  Also the removal of /var/run/ld.so.hints
	isn't needed this /var/run is already totally cleaned.
>How-To-Repeat:
	
>Fix:
*** /usr/src/etc/rc	Mon Mar 28 13:04:10 1994
--- /etc/rc	Mon Apr  4 00:54:47 1994
***************
*** 69,74 ****
--- 69,83 ----
  
  mount /usr >/dev/null 2>&1
  
+ # clean up left-over files
+ rm -f /etc/nologin
+ rm -f /var/spool/lock/LCK.*
+ rm -f /var/spool/uucp/STST/*
+ (cd /var/run && { rm -rf -- *; cp /dev/null utmp; chmod 644 utmp; })
+ 
+ echo 'runtime link editor directory cache'
+ ldconfig
+ 
  echo -n 'starting rpc daemons:'
  echo -n ' portmap';		portmap
  
***************
*** 98,113 ****
  
  echo '.'
  mount -a -t nfs
- 
- # clean up left-over files
- rm -f /etc/nologin
- rm -f /var/spool/lock/LCK.*
- rm -f /var/spool/uucp/STST/*
- (cd /var/run && { rm -rf -- *; cp /dev/null utmp; chmod 644 utmp; })
- 
- echo 'runtime link editor directory cache'
- rm -f /var/run/ld.so.hints
- ldconfig
  
  echo -n 'starting system logger'
  rm -f /dev/log
--- 107,112 ----
>Audit-Trail:
>Unformatted:


------------------------------------------------------------------------------