Crontab not running any task on Centos 6

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

  1. #1
    I try to install the missing crontab on Centos 6 but my tasks not running :(

    yum -y install crontabs cronie cronie-anacron

    Then i edit it using:

    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:

    /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... :(

    Any ideas?

    Any ideas on how to remove this and installing the normal crontab and start using it?
     
    Last edited: Jan 14, 2012
    ASTRAPI, Jan 14, 2012 IP
  2. SolidShellSecurity

    SolidShellSecurity Banned

    Messages:
    262
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    45
    #2
    Are you running a server or desktop/laptop? anacrontab should not be used for servers. Servers you use crond and modify the crontab with "crontab -e"
     
    SolidShellSecurity, Jan 14, 2012 IP
  3. ASTRAPI

    ASTRAPI Guest

    Messages:
    500
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Server Centos 6 64 Bit.

    Centos start using anacrod i don't know why so i try to install this using:

    yum -y install crontabs cronie cronie-anacron

    Now how can i uninstall this so i can install the normal crontab?
     
    ASTRAPI, Jan 14, 2012 IP
  4. SolidShellSecurity

    SolidShellSecurity Banned

    Messages:
    262
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    45
    #4
    You cam do yum remove but crontabs and crond come installed by default with CentOS
     
    SolidShellSecurity, Jan 14, 2012 IP
  5. ASTRAPI

    ASTRAPI Guest

    Messages:
    500
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Maybe it was a minimal installation :(

    Can i run this to remove it:

    And then install the normal crontab on Centos 6?

    Is this ok for normal crontab ?

    Thank you
     
    ASTRAPI, Jan 14, 2012 IP
  6. ASTRAPI

    ASTRAPI Guest

    Messages:
    500
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Problem solved !
     
    ASTRAPI, Jan 14, 2012 IP
  7. shongale

    shongale Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Cron has always been a pain in the ass and I have to teach every new admin assistant how to do it. Pain in the butt and a waste of a lot of time. So my solution for our small server farm here is to INSTALL WEBMIN. It allows you to run cron jobs and any other dam thing you want to do with your server.
     
    shongale, Jan 17, 2012 IP