[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[leafnode-list] Small change request

In the process of composing a long email asking why my texpire wasn't running, even though it ran manually and showed up in cron.log, I realised what my problem was.

I have texpire in my cron like this:


# News Crontab
# Author: JCC
# Last changed: 19/03/2003

# Run Texpire every night at 4am
1 4  * * *   /usr/local/sbin/texpire -v

# Run fetchnews every hour now the we have broadband!
0 * * * *   /usr/local/sbin/fetchnews -v

# Run a queue check and post outgoing every 5 minutes
*/5 * * * * /var/spool/news/qcheck

The observant among you will have noticed that texpire will never run, because fetchnews will always have the lock!  This is only since I made fetchnews run hourly, to take advantage of the company's new 2Mbps line (was ISDN before).  However, texpire doesn't put anything in the log when this happens.

To save idiots like me banging their heads on the wall, could texpire (in version 2, which I use) write something to the log in this case?  Just the message like "texpire: lockfile /var/lock/news/fetchnews.lck exists, abort" would be great.


leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list