Subject: bin/8306: /etc/rc cleans /var/run completely
To: None <gnats-bugs@gnats.netbsd.org>
From: Martin Husemann <martin@rumolt.teuto.de>
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
>Last-Modified:
>Originator: Martin Husemann
>Organization:
>Release: August 30
>Environment:
System: NetBSD rumolt.teuto.de 1.4K NetBSD 1.4K (RUMOLT) #4: Tue Aug 31 21:32:49 MEST 1999 root@rumolt.teuto.de:/usr/src/sys-i4b/arch/i386/compile/RUMOLT i386
>Description:
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.
>How-To-Repeat:
>Fix:
>Audit-Trail:
>Unformatted: