[Techtalk] debian init.d file to create log directory?

Maria McKinley maria at shadlen.org
Wed Feb 10 19:39:14 UTC 2010


Hello all,

I am running several diskless clients in which the log files are kept in 
ram. One of the programs I am running is one called munin. Munin creates 
a directory, /var/log/munin when it is installed, but when it is started 
on boot, it does not have a check that creates the directory if it does 
not already exist. So, munin doesn't start, because the log directory is 
obviously not there in this case. What is the best way to create this 
directory on boot? Should I just add something to /etc/init.d/munin to 
create the directory? I noticed that cups manages to create its own log 
directory on boot, but couldn't see anything in the init.d file that 
actually creates the file, so maybe there is somewhere else that it 
should be created?

thanks,
maria


More information about the Techtalk mailing list