_vern_ Posted June 7, 2016 Share Posted June 7, 2016 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... Quote Link to comment
itimpi Posted June 7, 2016 Share Posted June 7, 2016 As far as I know there is no automatic logging of crown jobs. They are expected to generate their own logging entries if needed. Quote Link to comment
_vern_ Posted June 7, 2016 Author Share Posted June 7, 2016 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! Quote Link to comment
jevans04 Posted June 8, 2016 Share Posted June 8, 2016 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" Quote Link to comment
_vern_ Posted June 8, 2016 Author Share Posted June 8, 2016 Thank you very much for that information...very useful! Thanx! Quote Link to comment
Recommended Posts
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.