Hi again! Lets ignore my earlier posts.
I have one service on my server controlled by a script with three functions: start, stop and status. The start command will run a java process and some more; this is the processes I want to monitor. Status for this processes taken from the pid file will not be valid, instead the status script will run several tests and return the status. I want monit to check if this service is up all the time, where up is defined by the status script returning OK. / William -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aleksander Kamenik Sent: den 28 november 2007 08:41 To: This is the general mailing list for monit Subject: Re: [monit] Problem when monit restart services without a pid file William Tisäter wrote: > Why I need to remove the pid is because I have a service running various > checks on my services. > > When a service control fails I want monit to fail too, so I remove the > pid file How about "echo 12345 > /path/to/pidfile" instead of "rm -f /path/to/pidfile"? Although I still don't quite understand your setup. Regards, -- Aleksander Kamenik system administrator +372 6659 649 [EMAIL PROTECTED] Krediidiinfo AS http://www.krediidiinfo.ee/ -- To unsubscribe: http://lists.nongnu.org/mailman/listinfo/monit-general -- To unsubscribe: http://lists.nongnu.org/mailman/listinfo/monit-general
