Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 18
  1. #1
    Member
    Join Date
    Sep 2001
    Posts
    87

    Default Auto Restart of Services

    Where and how does WHM monitor and automatically restart services that die? I've been having problems recently with one of my servers. Httpd would die every couple of days and WHM won't know a thing about it. In the sevices status page everything is green, and Cpanel doesn't automatically restart it either.

  2. #2
    Member
    Join Date
    Mar 2002
    Posts
    29

    Default

    Im having same problem

  3. #3
    Member
    Join Date
    Aug 2001
    Posts
    115

    Default

    [quote:d9a5d2259a][i:d9a5d2259a]Originally posted by dominet[/i:d9a5d2259a]

    Im having same problem[/quote:d9a5d2259a]

    hi guys

    cpanel does restart the service automatically if it fails. the checkservd will constantly check all the services - apache, exim, bind, mysql, interchange, proftpd, syslogd, webmail etc.

    regards,
    Parag

  4. #4
    Member
    Join Date
    Mar 2002
    Posts
    55

    Default

    Well, chkservd seems to be ignoring my apache too. I've had to manually restart Apache several times now (its gone from the ps list) and chkservd/WHM didn't notice.

    I had mod_gzip installed, so I've removed that to see if it still keeps hanging.

  5. #5
    Member
    Join Date
    Dec 2001
    Posts
    1,558

    Default

    I have been having the exact same problem. Apache and exim fail in the middle of the night. WHM checks out fine, so its not till I get to my works station and have a load of angry customers that its restarted. Has anyone submitted a bug for this yet?
    Beau Henderson

  6. #6
    itf
    itf is offline
    Member
    Join Date
    May 2002
    Posts
    626

    Default resources

    1) Look in /etc/resolv.conf & /etc/hosts and make sure they are correct; Services fail continuously if those files are not setup correctly

    2) So many users or low system resources like RAM & CPU Speed
    In WHM -& Security -& Modify Apache Memory Usage Limit
    Please use messengers to contact me:
    MSN: patrickay@msn.com
    AIM: PatrickITF

  7. #7
    Member
    Join Date
    Dec 2001
    Posts
    1,558

    Default

    what exactly should be in those 2 files? Just curious, because I believe mine are set up correctly, but I would like to be sure.
    Beau Henderson

  8. #8
    itf
    itf is offline
    Member
    Join Date
    May 2002
    Posts
    626

    Default /etc/hosts & /etc/resolv.conf

    [quote:93b0dfd315][i:93b0dfd315]Originally posted by iminteractive[/i:93b0dfd315]

    what exactly should be in those 2 files? Just curious, because I believe mine are set up correctly, but I would like to be sure.[/quote:93b0dfd315]
    /etc/hosts :

    # Do not remove the following line, or various programs
    # That requires network functionality will fail.
    127.0.0.1 localhost.localdomain localhost
    Server-IP domain.com Short-Host-Name

    /etc/resolv.conf :

    domain domain.com
    search domain.com
    nameserver IP-of-ns1.domain.com
    nameserver IP-of-ns2.domain.com
    # you can have additional nameservers here

    Also check your DNS settings (nameservers & hostname)

    Why you don't use this to free up some resources

    In WHM -& Security -& Modify Apache Memory Usage Limit
    Please use messengers to contact me:
    MSN: patrickay@msn.com
    AIM: PatrickITF

  9. #9
    Member
    Join Date
    Aug 2001
    Posts
    89

    Default

    It's not related to the hosts or the resolv.conf files.

    This is most likely a bug in the checkserv daemon, as it is effecting my server as well.

    I spoke with venturesonline's helpdesk, and they've stated that the checkserv daemon not paying any attention to a dead apache is becoming very common across their dedicated and virtual servers.

    I'm working on a shell script to run via cron to help restart apache until such time as the checkserv daemon is corrected.

  10. #10
    itf
    itf is offline
    Member
    Join Date
    May 2002
    Posts
    626

    Default

    [quote:e6ec88f9e0][i:e6ec88f9e0]Originally posted by indiboi[/i:e6ec88f9e0]

    It's not related to the hosts or the resolv.conf files.

    This is most likely a bug in the checkserv daemon, as it is effecting my server as well.

    I spoke with venturesonline's helpdesk, and they've stated that the checkserv daemon not paying any attention to a dead apache is becoming very common across their dedicated and virtual servers.

    I'm working on a shell script to run via cron to help restart apache until such time as the checkserv daemon is corrected.[/quote:e6ec88f9e0]

    If this is a bug why the others haven't any? Substantial servers are running Cpanel, also we haven't had such error with our servers (P4 1.6GHz to 2Ghz with 256MB to 2GB RAM)
    LinuxFreaky also wrote that they have the problem just with one of their servers not all of them,
    There will be 3 possible choices for root of such trouble
    1) System Resources
    2) invalid configuration
    3) Bug (you selected this but why it's not so populated and why should not to control both above choices first)
    Please use messengers to contact me:
    MSN: patrickay@msn.com
    AIM: PatrickITF

  11. #11
    Member
    Join Date
    Aug 2001
    Posts
    89

    Default

    Cpanel bugs are almost always sporadic in nature.

    There's no point in arguing over it though. Server works fine, cpanel updates, server no longer works fine.

    Configuration is fine prior to and after cpanel update

    System resources have never been an issue before.

    A problem with the checkserv daemon is the logical conclusion.

    You'd never notice this unless apache did fail, and realistically that isn't very often.

  12. #12
    Member
    Join Date
    Aug 2001
    Posts
    89

    Default Good news!

    I just updated to WHM/Cpanel and did a &controlled test& of checkserv, by just bluntly stopping apache. After five minutes WHManager's AIMbot messaged to state that the process for apache had failed and was restarted.

    Looks like it's working again, thankfully.

  13. #13
    Member
    Join Date
    Dec 2001
    Posts
    1,558

    Default

    Still having the problem here. Im on build 20, been there since it was released.
    Beau Henderson

  14. #14
    Member
    Join Date
    Jan 2002
    Posts
    11

    Default

    I will have Nick take a look at this and see if it is a bug or what. I'm also working out resolving a clients server that is having the same problem . We have over 10 cPanel boxes and not one of them has did this to us

  15. #15
    Member
    Join Date
    Dec 2001
    Posts
    1,558

    Default

    the problem seems to have resolved itself with us.
    Beau Henderson

Similar Threads & Tags
Similar threads

  1. Restart Services?
    By jhyland87 in forum cPanel Developers
    Replies: 5
    Last Post: 06-24-2009, 01:36 PM
  2. Restart Services - are these all graceful?
    By spaceman in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-12-2007, 05:17 PM
  3. restart services
    By shanit in forum New User Questions
    Replies: 6
    Last Post: 12-21-2005, 10:37 AM
  4. Restart Services (ProFTPd) ???
    By flash7 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 09-10-2004, 02:09 AM
  5. How do you restart services from shell?
    By bjdea1 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 06-17-2004, 04:15 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube