monit-general
[Top][All Lists]
Advanced

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

Re: [monit] Need help restarting an app.


From: Martin Pala
Subject: Re: [monit] Need help restarting an app.
Date: Fri, 4 Jul 2008 00:49:46 +0200

you can send signal to process using for example kill/pkill/killall, for example:

killall -TERM app




On Jul 4, 2008, at 12:33 AM, SPAZ wrote:


I'm not really sure what your talking about. when i attach the screen the only option i have is to CTRL+C. even if i delete the .pid file the app stays running as the .pid is an option i have enabled in the .conf files of
the app.


Martin Pala wrote:

Most applications handle signals like TERM gracefully ... try to check
whether the app can be terminated for example using some signal

Martin


On Jul 4, 2008, at 12:02 AM, SPAZ wrote:


I currently am starting this app in screen with

---> ./appname -c /location/of/app.conf

To end the app i have to attach the screen and issue a CTRL+C to
terminate.

I have been able to have monit monitor all the resources that this
app is
using by monitoring the .pid file the app makes.

Is there any way i can have monit restart this app when the memory/ cpu
resources reach a certain level or if monit senses that the app has
frozen?

Thanks
SPAZ

--
View this message in context:
http://www.nabble.com/Need-help-restarting-an-app.-tp18266291p18266291.html
Sent from the monit-general mailing list archive at Nabble.com.



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



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



--
View this message in context: 
http://www.nabble.com/Need-help-restarting-an-app.-tp18266291p18269489.html
Sent from the monit-general mailing list archive at Nabble.com.



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





reply via email to

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