Subject: Re: bin/8306: /etc/rc cleans /var/run completely
To: None <martin@rumolt.teuto.de>
From: Matthias Scheler <tron@zhadum.de>
List: netbsd-bugs
Date: 09/01/1999 09:26:53
In article <199909010551.HAA00368@rumolt.teuto.de>,
	Martin Husemann <martin@rumolt.teuto.de> writes:
> 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.

That's not true. I use our Samba package, too, and it still works
perfectly after Sunday's reboot.

> 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)

A there is your mistake. You must *not* start daemons in "netstart.local".
"netstart.local" is intended for setting up static routes or manual
interface configuration (e.g. tunneling).

"/etc/rc.local" is the correct place for starting daemons. At this stage
of the boot process basic daemons like "named", "portmap" or "routed"
are already active so that 3rd party daemons will work properly.

	Kind regards

-- 
Matthias Scheler                            http://www.sighardstrasse.de/~tron/