monit-general
[Top][All Lists]
Advanced

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

RE: How to stop a process permanent


From: lutz . mader
Subject: RE: How to stop a process permanent
Date: Thu, 19 May 2016 11:40:01 +0200
User-agent: freenetMail

Hello Christoper, Russell,
thanks for the suggestions.


Yes, in general it's a handlings problem.
All the time someone use an old script to start somethings, monit doesn't 
notice this.
I add some additional code to use the right commands inside the schripts now. 



    'restart')
        if [ "$MONIT_SERVICE" = 'Manager' ]; then
          $0 stop
          sleep 30
          $0 start
        else
          $HOME/monit/bin/monit restart Manager
        fi



On the other hand, the scripts handle the "start" of a running appliaction well.
There is no way to start an application twice, there is a check inside the 
scripts.


In general I thing, "Not monitored" is the wrong status on a "Stopped" 
"Process" or "Program".
But "Not monitored" is an easy way to prevent an application to be startet 
again by monit, but it's the wrong way and doesn't fit well (sometimes), sorry.


In general monit is a nice/usefull/easy tool,
regards,
Lutz




 

---
Alle Postfächer an einem Ort. Jetzt wechseln und E-Mail-Adresse mitnehmen! 
https://email.freenet.de/mail/Uebersicht?epid=e9900000451





reply via email to

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