Centos 6 missing crontab

Discussion in 'Site & Server Administration' started by ASTRAPI, Jan 13, 2012.

  1. #1
    Hello

    On a server with clean Centos 6 64bit installation the etc/crontab file is missing :(

    After searching on the net i found that Centos 6 is not using anymore the etc/crontab and is using the etc/anacrontab

    http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Migration_Planning_Guide/ch04s14.html
    Code (markup):
    But this one is also missing for me...

    I found a way that maybe will fix my problem:

    yum -y install vixie-cron.x86_64
    /sbin/service crond start
    /sbin/chkconfig crond on
    
    crontab -e
    Code (markup):
    But i am wondering is this the best solution?

    Why i do not have the anacrontab file?

    I can see some folders like daily, weekly, and so on that have inside some files but not named crontab that it seems that are running some tasks....

    So if i use the above commands do i break any of other cron tasks if they exist using other way to run from this folders?

    Thank you
     
    ASTRAPI, Jan 13, 2012 IP