monit-general
[Top][All Lists]
Advanced

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

Re: monitor multiple instances of the same script


From: Martin Pala
Subject: Re: monitor multiple instances of the same script
Date: Wed, 11 Aug 2010 21:08:17 +0200

If these processes will write pidfile, you can set separate check for all of 
them.


On Aug 11, 2010, at 1:52 PM, Jose Castro wrote:

> Well, The idea was not to start gearman itself but the worker
> processes. I just dont know how to do it, or if monit is a good fit
> for this.
> 
> Let say I want to start 10 worker processes(all the same script) and
> if one of them dies, I want monit to restart it.  I have not seen any
> examples of something like this.
> 
> Thank you
> 
> 
> 
> 
> 
> 
> On Wed, Aug 11, 2010 at 4:08 AM, Martin Pala <address@hidden> wrote:
>> You can monitor the parent process of the worker processes + set the start
>> script for your application as "start program" in monit configuration.
>> 
>> You can find gearman configuration example here for
>> example: http://www.darkcoding.net/software/setting-up-monit-on-ubuntu/
>> check process gearmand with pidfile /var/run/gearman/gearmand.pid
>>     start program = "/etc/init.d/gearman-job-server start"
>>     stop program = "/etc/init.d/gearman-job-server stop"
>> 
>> On Aug 11, 2010, at 5:56 AM, Jose Castro wrote:
>> 
>> I am using gearman with php to create X number of worker processes in
>> php.  Can I use monit to start X number of the same php worker
>> process? How?
>> 
>> --
>> To unsubscribe:
>> http://lists.nongnu.org/mailman/listinfo/monit-general
>> 
>> 
>> --
>> To unsubscribe:
>> http://lists.nongnu.org/mailman/listinfo/monit-general
>> 
> 
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general




reply via email to

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