Bug#500832: mrtg: lock file error

2008-10-08 Thread Balázs Hámorszky
if i change the cron script to: */5 * * * * rootif [ -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

Bug#500832: mrtg: lock file error

2008-10-01 Thread balihb
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. :) No problem if I run it by ha

Bug#500832: mrtg: lock file error

2008-10-01 Thread Adam Majer
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 c

Bug#500832: mrtg: lock file error

2008-10-01 Thread balihb
Package: mrtg Version: 2.16.2-3 Severity: important if mrtg run by cron I get this the second time cron run it: 2008-09-29 12:40:02: ERROR: I guess another mrtg is running. A lockfile (/var/lock/mrtg/_etc_mrtg.cfg_l) aged 1800 seconds is hanging around. If you are sure that no other mrtg is runn