The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

crond not starting after reboots - please help!

Discussion in 'General Discussion' started by HendrikM, Oct 6, 2004.

  1. HendrikM

    HendrikM Active Member

    Joined:
    Jun 26, 2004
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    My crond will not start after reboots and I must manually start the service after each reboot.
    Does anybody have experience with this problem?

    Thank you
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    It does depend what OS you are running. On Linux, you can do the following to find out which boot (init) levels crond will run up in:

    chkconfig --list crond

    It should look like this:

    crond 0:eek:ff 1:eek:ff 2:eek:n 3:eek:n 4:eek:n 5:eek:n 6:eek:ff

    If it does, then you need to look through your boot logs (/var/log/dmesg and/or /var/log/messages) to find out what's happening to crond. If it doesn't look like that, then you can use:

    chkconfig crond on

    And that should set it correctly for run levels 2 to 5.
     
  3. HendrikM

    HendrikM Active Member

    Joined:
    Jun 26, 2004
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Many thanks Jonathan!

    I think it will work now:

    root@skadi [/tmp]# chkconfig --list crond
    service crond supports chkconfig, but is not referenced in any runlevel (run 'chkconfig --add crond')
    root@skadi [/tmp]# chkconfig crond on
    root@skadi [/tmp]# chkconfig --list crond
    crond 0:eek:ff 1:eek:ff 2:eek:n 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
    root@skadi [/tmp]#
     
    #3 HendrikM, Oct 6, 2004
    Last edited: Oct 6, 2004
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Looks good now :)
     
  5. HendrikM

    HendrikM Active Member

    Joined:
    Jun 26, 2004
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Jonathan,

    Can you perhaps see any other services which is not started, but should have been:

    WHM 9.9.0 cPanel 9.9.0-C80
    RedHat 9 i686 - WHM X v3.1.0

    root@skadi [~]# chkconfig --list
    syslog 0:eek:ff 1:eek:ff 2:eek:n 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
    crond 0:eek:ff 1:eek:ff 2:eek:n 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
    network 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:n 4:eek:ff 5:eek:ff 6:eek:ff
    sshd 0:eek:ff 1:eek:ff 2:eek:n 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
    saslauthd 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:ff 4:eek:ff 5:eek:ff 6:eek:ff
    httpd 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:n 4:eek:ff 5:eek:n 6:eek:ff
    named 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:n 4:eek:ff 5:eek:ff 6:eek:ff
    iptables 0:eek:ff 1:eek:ff 2:eek:n 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
    proftpd 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:n 4:eek:ff 5:eek:n 6:eek:ff
    xinetd 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
    bandmin 0:eek:ff 1:eek:ff 2:eek:n 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
    chkservd 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
    mysql 0:eek:ff 1:eek:ff 2:eek:n 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
    portsentry 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
    cpanel 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
    filelimits 0:eek:ff 1:eek:ff 2:eek:n 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
    antirelayd 0:eek:ff 1:eek:ff 2:eek:n 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
    exim 0:eek:ff 1:eek:ff 2:eek:n 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
    ipaliases 0:eek:ff 1:eek:ff 2:eek:n 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
    portmap 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
    xinetd based services:
    pop-3: on
    ntalk: on
    talk: on
    telnet: on
    cpimap: on
    sgi_fam: on
    root@skadi [~]#
     
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    I've just made a comparision and that looks good to me. I don't see anything major missing.
     
  7. HendrikM

    HendrikM Active Member

    Joined:
    Jun 26, 2004
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Many Thanks!
     
Loading...

Share This Page