if i change the cron script to: */5 * * * * root if [ -x /usr/bin/mrtg ] && [ -r /etc/mrtg.cfg ]; then env LANG=C screen -dmS MRTG /usr/bin/mrtg ; fi than it works
On Wed, Oct 1, 2008 at 23:23, Adam Majer <[EMAIL PROTECTED]> wrote: > balihb wrote: >> >> If I add an rm to cron to delete the file after mrtg runned, then mrtg >> will not collect al the info it should. It only heppens with 2.16.2-3 and >> not with 2.16.2-2. I don't know how it's possible. > > Try running it by hand and see if it crashes or otherwise. The pid file > should be cleaned up by the program if it runs and exits properly, but it > will not if it crashes or gets killed somehow. > > - Adam > > PS. Disable the cron job before starting the by-hand tests. :) > > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]