[CentOS] Cron - log when job ends?

John Horne

john.horne at plymouth.ac.uk
Fri Nov 15 17:54:07 UTC 2019


In trying to resolve a problem with a cron job, we can see when the job starts
by looking in the /var/log/cron log file. However, I was asked if when the job
ends could also be logged. (It seems to be something that crops up every so
often over the years.)

I found on the 'net this article

which mentions a loglevel (-L) option, and by setting this to 2 it will log
when a cron job ends. It sounds great, and just what we could use. The downside
is that there seems to be no such option anymore. The article is several years
old but the users says they are using anacron. Checking on both a CentOS 7 and
Fedora 31 system, which both use cronie-anacron, I could find no mention of any

Does anyone know what happened to this option (why it was removed)? It would
seem to be useful, but removed at some time.



John Horne | Senior Operations Analyst | Technology and Information Services
University of Plymouth | Drake Circus | Plymouth | Devon | PL4 8AA | UK

This email and any files with it are confidential and intended solely for the use of the recipient to whom it is addressed. If you are not the intended recipient then copying, distribution or other use of the information contained is strictly prohibited and you should not rely on it. If you have received this email in error please let the sender know immediately and delete it from your system(s). Internet emails are not necessarily secure. While we take every care, University of Plymouth accepts no responsibility for viruses and it is your responsibility to scan emails and their attachments. University of Plymouth does not accept responsibility for any changes made after it was sent. Nothing in this email or its attachments constitutes an order for goods or services unless accompanied by an official order form.

More information about the CentOS mailing list