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.

chkservd and crond

Discussion in 'General Discussion' started by rapidot, Sep 6, 2005.

  1. rapidot

    rapidot Active Member

    Joined:
    Nov 15, 2004
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    Crond keeps dying on me. Is there a way to make chkservd restart it?
     
  2. ncconquer

    ncconquer Well-Known Member

    Joined:
    Jun 20, 2004
    Messages:
    80
    Likes Received:
    0
    Trophy Points:
    6
    there a way to make chkservd restart it?
    use: /sbin/service chkservd restart
     
  3. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Probably. You'd need to look how chkservd works with the configuration files in /etc/chkservd.d/ and /usr/sbin/chkservd

    What would, of course, be better would be to fix the issue that is causing crond to fail. Have you checked the /var/log/cron and /var/log/messages files for when crons dies to see if it gives out errors.
     
  4. BenThomas

    BenThomas Well-Known Member

    Joined:
    Feb 12, 2004
    Messages:
    598
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Houston, Texas USA
    cPanel Access Level:
    Root Administrator
    Support for monitoring crond will be added to chkservd in the near future.
     
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Excellent :cool:
     
  6. jondolar

    jondolar Well-Known Member

    Joined:
    Feb 15, 2004
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    When will support for monitoring cron be added?

    I just found out that crond was not running on one of my servers. I was able to manually restart it. However, it was 2 days before I noticed it. This happened on the same server about a month ago. I guess it is time to figure out why it is failing.

    Any suggestions as to how to figure out what is causing crond to stop running?
     
  7. xServers.ro

    xServers.ro Registered

    Joined:
    Jan 26, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Monitoring Crond

    Here's how you can monitor cron daemon using Chkservd of Cpanel:

    - go in /etc/chkserv.d and add a file named crond with this content:
    service[crond]=x,x,x,/etc/init.d/crond restart,crond,root

    - edit chkservd.conf and add the line crond:1

    - restart chkserv service with /scripts/restartsrv_chkservd

    That's it.
     
Loading...

Share This Page