Jump to content
_vern_

Are Cron Jobs Logged?

5 posts in this topic Last Reply

Recommended Posts

Are cron jobs logged? I'm looking in System Log found under Tools, but I'm not finding any entries where cron jobs are executed. Are they being logged else where by chance? I have a custom job that is running and I was sort of expecting when it ran that I would find an entry in the system log, but that doesn't appear to be happening and I know the cron job is working right. Perhaps this has been addressed in another thread, but I wasn't able to find it if so. Thanx for any information that anyone can provide...

Share this post


Link to post

As far as I know there is no automatic logging of crown jobs.  They are expected to generate their own logging entries if needed.

Share this post


Link to post

Thank you for the reply...but, this seems odd to me. Cron jobs are typically logged to syslog as a standard and of course can be configured to log else where if desired. In the case of unRaid, if it's up to the user to setup logging to show that the cron job executed (not the results or output of what was run, just the fact that that cron job ran) would also mean that the user wouldn't be able the use the interface of unRaid to see that...unless the user has the ability to send custom logging to the unRaid System Log (this can probably be done, but haven't really dug into it). This seems like an oversight to me...IMHO cron job execution should be part of the system log as a default configuration. Just my 2 cents...thanx!

Share this post


Link to post

In my custom scripts that are run via cron I add logger lines that put entries in the system log file.

For example:

 

logger "custom task started"

logger "custom task ended"

 

 

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.