cron.daily joborder

Discuss Applications
Post Reply
User avatar
Basher52
guru
guru
Posts: 916
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

cron.daily joborder

Post by Basher52 » Fri Mar 13, 2009 2:16 am

Is there a way to set the order of all jobs that are set to be run using /etc/cron.daily?
I want to do this since the logs that I need to see are at the bottom and the logs that I do not need to see every day is at the top and it's very very big.

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Fri Mar 13, 2009 7:26 am

There are two crons on your system, the regular cron (add jobs using "crontab -e" command) and anacron which executes scripts from the /etc/cron.daily (weekly, monthly, etc). The anacron is more for systems that are shut down a lot and might miss a job that is scheduled to run in the middle of the night. anacron would pick that job up when the system comes up.

Having said that if this is a server that's on 24x7 you could move those selected scripts out of /etc/cron.daily into another directory and then schedule each one individually to run at the exact time you want each day using the regular cron (crontab -e).

Post Reply