chkservd and Tomcat / MySQL

jsteel

Well-Known Member
Jul 4, 2002
646
0
166
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
 

nitromax

Well-Known Member
Feb 12, 2002
189
0
316
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!
 

nitromax

Well-Known Member
Feb 12, 2002
189
0
316
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! :)