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 Tomcat / MySQL

Discussion in 'General Discussion' started by jsteel, Oct 4, 2002.

  1. jsteel

    jsteel Well-Known Member

    Joined:
    Jul 4, 2002
    Messages:
    646
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Atlanta, GA
    Has anyone added Tomcat (ajp13/8009) to chkservd for monitoring and auto-restarting on failure?

    Also, I noticed the mysql chkserv.d file just has 'x' for the port, command, etc. Any ideas why?

    Jaz
     
  2. nitromax

    nitromax Well-Known Member

    Joined:
    Feb 12, 2002
    Messages:
    189
    Likes Received:
    0
    Trophy Points:
    16
    I have not added tomcat to chkservd for monitoring, but I too would like to do this!

    As to your second question... I had Nick show me what command to use (for chkservd) in order to check that cpaneld is running, as it has gone down on a number of occations. And here is what he told me to use:

    #SERVICE = PORT, SEND, RESPONSE, RESTART COMMAND
    service[cpaneld]=x,x,x,/usr/local/cpanel/startup,cpaneld,cpanel


    It has the &x& in there 3 times. Since it came straight from Nick I am assuming that it must work properly that way. I wonder if you could to tomcat like this:

    #SERVICE = PORT, SEND, RESPONSE, RESTART COMMAND
    service[tomcat]=x,x,x,/scripts/restomcat

    Actuallyl I think I will set that up in the /etc/chkserv.d folder. Then shutdown tomcat, the see if chkservd restarts it. If it works out I'll let you know!
     
  3. nitromax

    nitromax Well-Known Member

    Joined:
    Feb 12, 2002
    Messages:
    189
    Likes Received:
    0
    Trophy Points:
    16
    Well, that didn't work. In fact... I appears that it will cause it to fail if you leave it up there like that. So I deleted it for now.

    But if you find something that does work please post it back here! I'd appreciate it. And if you need any other ones just let me know. I have the following ones listed below:

    apache
    cpanel
    cppop
    exim
    imap
    interchange
    mysql
    proftpd
    sshd
    syslogd
    webmail

    Actually I think I only added &cpanel& and &cppop&. I already showed you what to do for cpanel. So here is the one for the POP3 Server if you don't already have it:

    #SERVICE = PORT, SEND, RESPONSE, RESTART COMMAND
    service[pop3]=110,QUIT, ,/scripts/restartsrv cppop


    Cheers! :)
     
  4. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    For tomcat and PostGreSql
    See this thread.
    http://forums.cpanel.net/read.php?TID=5495
     
Loading...

Share This Page