1

CentOS release 6.7

Vanilla install, all I have really done is added to /etc/crontab 59 23 * * * root run-parts /etc/cron.daily

inside /etc/cron.daily is svn.sh which has a single line /home/svn.sh 2>&1| mail -s "blah" myemailaddy

The final script dumps the database and does a svn commit on the zipfile.

The bizarre thing is that it emails me at 5 minutes past midnight showing the database dump output and the svn commit. Then 4 hours later it runs again for no reason I can understand. Does it every day but what time later can vary (e.g. might be 3.5 hours later)

There is just a single instance of crond running.

What can I look for to troubleshoot this?

2
  • Is it possible that another user also has the same job scheduled? Here is a discussion on listing jobs across all users stackoverflow.com/questions/134906/…
    – mmccaff
    Sep 26, 2015 at 12:43
  • I took a look, no other crontab and its just a brand new system, nobody logs on except me - just runs one website.
    – Greg C
    Sep 26, 2015 at 15:18

1 Answer 1

0

So in the end it appears to be the run-parts /etc/cron.daily

not sure how that works, but not well. Replacing that with calling the script directly and it works fine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.