Subject: bin/8306: /etc/rc cleans /var/run completely
To: None <>
From: Martin Husemann <>
List: netbsd-bugs
Date: 08/31/1999 23:05:45
>Number:         8306
>Category:       bin
>Synopsis:       /etc/rc cleans /var/run, throwing away essential thinks
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 31 23:05:00 1999
>Originator:     Martin Husemann
>Release:        August 30
System: NetBSD 1.4K NetBSD 1.4K (RUMOLT) #4: Tue Aug 31 21:32:49 MEST 1999 i386


I installed samba-2.0.5a from pkgsrc. This puts it's lock directory
into /var/run/samba.

On reboot /etc/rc removes this directory, so samba does not work.

Since the unconditional removing of files under /var/run relatively 
late in the boot process causes othere grieves too (local sockets created
by deamons run in netstart.local are removed) I suggest removing this
brutal rm -rf and replacing it with some find magic to explicitly check
for directories and files younger than uptime.