Subject: bin/7680: /var/run et al are cleaned after netstart
To: None <gnats-bugs@gnats.netbsd.org>
From: None <ingolf@knuut.de>
List: netbsd-bugs
Date: 05/31/1999 13:50:59
>Number:         7680
>Category:       bin
>Synopsis:       /var/run is cleaned after netstart, deleting pppd*.pid
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 31 13:50:01 1999
>Last-Modified:
>Originator:     Ingolf Koch
>Organization:
Beste Kneipe in Jena-Ost
>Release:        NetBSD-1.4
>Environment:
System: NetBSD maus 1.4 NetBSD 1.4 (MAUS) #0: Fri May 21 11:22:08 MEST 1999 ingolf@maus:/usr/obj/sys/arch/amiga/compile/MAUS amiga


>Description:
	/var/run is cleaned by /etc/rc after /etc/netstart is run. This
removes the pppd*.pid file which is installed by pppd in /var/run if
pppd is started by /etc/netstart.
The same applies to LCK files in /var/spool/lock.

This PR is related to bin/4744 which was for 1.3BETA and is still
in "open" state.
>How-To-Repeat:
	List at least one peer in ppp_peers in /etc/rc.conf (i.e. one
for which there is a suitable file in /etc/ppp/peers).
Boot the machine, then do a "ls -l /var/run/pppd*.pid".
There is no such file.
>Fix:
	Do cleanup (of /var/run and /var/spool/lock) before /etc/netstart
is run.
>Audit-Trail:
>Unformatted: