On Thu, Aug 24, 2006 at 08:33:41PM -0000, Victor Hugo dos Santos wrote: > */5 * * * * root if [ -d /var/lock/mrtg ]; then if [ -x > /usr/bin/mrtg ] && [ -r /etc/mrtg.cfg ]; then env LANG=C /usr/bin/mrtg > /etc/mrtg.cfg >> /var/log/mrtg/mrtg.log 2>&1; fi else mkdir > /var/lock/mrtg; fi
The problem with this is that no data is logged during this run. You will have a 10 minute gap in all your graphs. It is probably better to simply do the mkdir in /etc/rc.local until the package itself is corrected. -- Kevin Otte, N8VNR [EMAIL PROTECTED] http://www.nivex.net/ -=- "Those who cannot remember the past are condemned to repeat it." -- George Santayana "It seems no one reads Santayana anymore." -- Cdr. Susan Ivanova, Babylon 5 -- /var/lock/mrtg disappears on reboot https://launchpad.net/bugs/30428 -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
