Hello
On my server Cento 6 64Bit the crontab was missing and i try to install it manually as i want to run 2 cron tasks but those tasks never run and i test it on Centos 5 and it is just fine ...
I think that something changed on the new Centos 6 related as i am reading on the net thay are using anacrontab and not crontab anymore...
But this software have some folders inside /etc/ like cron.daily cron.d cron.monthly cron.weekly and inside these folders are some files that seems to be each task each file...
This is what i did:
Code:
yum -y install crontabs cronie cronie-anacron
Then i edit it using:
Code:
nano anacrontab - e
then i add my two lines inside but never runs ...
I also add the lines to test on crontab file but as i am using Centos 6 i think is better to use the anacrontab.
Then after not working i try this:
Code:
/etc/init.d/crond restart
All OK !
Then this:
service crond status
And i got running with pid bla bla...
On cron logs i can see other things to run like disk alert and logrotate that are files that exist on /etc/cron.daily ....
But when i add my lines on anacrontab there are not any other entries there and the same also for crontab...
Also reading on the net i think i must configure also this settings that i do not know where they are:
Code:
SHELL=/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
# the maximal random delay added to the base delay of the jobs
RANDOM_DELAY=45
# the jobs will be started during the following hours only
START_HOURS_RANGE=20-22
#period in days delay in minutes job-identifier command
1 5 cron.daily nice run-parts /etc/cron.daily
7 25 cron.weekly nice run-parts /etc/cron.weekly
@monthly 45 cron.monthly nice run-parts /etc/cron.monthly
I want to run cronjobs always and not limit per hours per day as my cron jobs are running very ofthen like 15 minutes all day and night.
I do not need also delay...
cron tasks:
Code:
*/15 * * * * /usr/local/bin/indexer --config /usr/local/etc/sphinx_ipb.conf ipb_search_posts_delta ipb_search_topics --rotate
0 4 * * * /usr/local/bin/indexer --config /usr/local/etc/sphinx_ipb.conf --all --rotate
Any ideas on how to remove this and installing the normal crontab and start using it?