Problem with lockfile in update_virus_scanners

Jan-Peter Koopmann Jan-Peter.Koopmann at SECEIDOS.DE
Wed Apr 28 11:18:52 IST 2004


Hi,

I just noticed that on one of our MailScanner servers no update was run
for the past 20 days. Turns out that at one point there must have been a
problem and the lockfile /tmp/MailScanner.autoupdate.lock was not
removed. From that point on no update worked. This surely is not a
suitable solution. If the sole purpose of this lockfile is to prevent
two cron jobs coming to close to each other, would it not be better to
check for the existence and the age of the lockfile? Something like "if
the lockfile is older than one hour, ignore it"?

Regards,
  JP

-------------------------- MailScanner list ----------------------
To leave, send    leave mailscanner    to jiscmail at jiscmail.ac.uk
For further info about MailScanner, please see the Most Asked
Questions at    http://www.mailscanner.biz/maq/     and the archives
at    http://www.jiscmail.ac.uk/lists/mailscanner.html




More information about the MailScanner mailing list