I have a process, tcpaprscvt, that when it is started, it actually generates two processes with two different pids. It does not create a pid file, so I will be using the suggestion(which I got from your archives) to create a pid file by adding this line at the end of my startup script: pgrep tcparscvt > /var/run/tcpaprscvt.pid
The start up script(startAPRScvt) is currently:

cd /home/aprsd2
UMASK=766
export TZ=CST6CDT
/home/aprsd2/tcpaprscvt -t -p 1 grb localhost 14579 &
/home/aprsd2/tcpaprscvt -t -p 1 crs localhost 14580 &

I works fine to manually restart the script. But as you can see, it actually starts two tcpaprscvt processes which each have their own pid. When I create the pid file, it has two pids in it. Will monit be able to handle this pid file properly? Thanks.
begin:vcard
fn:Teresa Havel
n:Havel;Teresa
org:NOAA's National Weather Service/Green Bay, WI
adr;dom:;;2485 South Point Road;Green Bay;WI;54313
email;internet:[EMAIL PROTECTED]
title:Information Technology Officer
tel;work:920 494-5845 x486
note:NOAA/NWS Green Bay
version:2.1
end:vcard

--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to