NetBSD Problem Report #217
From gnats Fri Apr 8 19:23:16 1994
Received: from forte (forte.mathematik.uni-Bremen.de [134.102.232.1]) by sun-lamp.cs.berkeley.edu (8.6.8/8.6.6) with ESMTP id TAA21959 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Fri, 8 Apr 1994 19:22:34 -0700
Message-Id: <199404090222.EAA12863@forte>
Date: Sat, 9 Apr 1994 04:22:19 +0200
From: thomas@mathematik.uni-Bremen.de
Reply-To: thomas@mathematik.uni-Bremen.de
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: /var/run cleanup and ldconfig should be run before any daemons
X-Send-Pr-Version: 3.2
>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
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri Apr 08 19:35:01 +0000 1994
>Closed-Date: Thu Jun 02 22:06:12 +0000 1994
>Last-Modified:
>Originator: Thomas Eberhardt
>Release:
>Organization:
CeVis, University of Bremen, Germany
>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 ----
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: jtc
State-Changed-When: Sat May 28 20:39:05 1994
State-Changed-Why:
I've checked in the bit which moves up the cleaning of /var/run, but
not the bit with ldconfig.
I had a brief on-line discussion with chris about it when this bug
report was first filed, but no decision was made. If I remember
correctly, the unresolved issue was whether or not ldconfig can be
safely run multiple times --- if it can't then it should be near the
end of rc.local (like in SunOS) so user's can add local shlib
directories easily.
State-Changed-From-To: feedback->closed
State-Changed-By: jtc
State-Changed-When: Thu Jun 2 22:06:12 1994
State-Changed-Why:
Moved ldconfig to end of rc.local.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.