On Saturday 28 August 2010 19.14.47 Mike Bowie wrote:
> On 8/28/10 9:28 AM, Goran Sandin wrote:
> > It is munin-common-1.4.3_2 and I'm using FreeBSD 7.3
> >
> > So far it doesn't survive a reboot.
> >
> > There is a config file where a location for pid-file is stated. If I
> > change the default directory for this pid-file, the program doesn't start
> > properly.
> >
> > /var/run/munin must exist when munin-node is started. If it doesn't
> > exist, the pid-file can not be created and the program start-up exits.
> >
> > Is there a way to re-create /var/run/munin when nanobsd start?
> 
> I'm not sure if there's a "better" way to go, but in cases like this I
> tend to add an entry to the rc script, since NanoBSD's /var is going to
> be re-populated on each boot.
> 
> For example, adding something like to /usr/local/etc/rc.d/munin:
> [ ! -d /var/run/munin ] && mkdir /var/run/munin
> 
> If someone has a more correct way, I'd be happy to hear about it and add
> it to my Nano build scripts. ;-)
> 
> HTH,
> 
> Mike.
> 

Hi Mike,

thanks this worked once I realized that I needed to place the edited script in 
/cfg/local/rc.d

/Göran
_______________________________________________
Soekris-tech mailing list
[email protected]
http://lists.soekris.com/mailman/listinfo/soekris-tech

Reply via email to