Subject: Re: Directory cleaned out after reboot
To: None <>
From: Valeriy E. Ushakov <>
List: netbsd-users
Date: 04/17/2007 21:18:14
Ajitabh Pandey <> wrote:

> I installed Nagios from pkg_src. After reboot, I was not able to start
> it up, I noticed that /var/run/nagios directory was missing, which I
> remember I created.
> Any pointers will be appreciated.
> If I faintly remember correct, it has something to do with some
> configuration file which maintains directory tree and their perms and
> sets up the same tree on reboot.

/etc/rc.d/mountcritlocal does

	(cd /var/run && rm -rf -- *)

PS: BTW, that also kills /var/run/dev.db so /etc/rc.d/sysdb ends up
rebuilding it on each boot.  I guess we should use /var/db/dev.db

SY, Uwe
--                       |       Zu Grunde kommen          |       Ist zu Grunde gehen