monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

service config


From: Govind
Subject: service config
Date: Fri, 15 Jul 2011 10:48:39 +0100

Hi,

I configured a service like this

check process dpm with pidfile /var/run/dpm.pid
group root
start program = "/etc/init.d/dpm start"
stop program = "/etc/init.d/dpm stop"
if 5 restarts within 5 cycles then timeout


I had segfault, which did not clean up the PID file, so i try checking for port like this
if failed port 5015 then restart
OR
if failed port 5015 type tcp then restart

But none of them work,
the dpm service run as
# netstat -tupln|grep dpm
tcp        0      0 0.0.0.0:5015                0.0.0.0:*                   LISTEN      8628/dpm       

Can  you please advise, if there was anything wrong in above syntax of port checking.

Thanks
Govind

reply via email to

[Prev in Thread] Current Thread [Next in Thread]