monit-general
[Top][All Lists]
Advanced

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

RE: monit with tomcat, PID problem


From: Ugo Bellavance
Subject: RE: monit with tomcat, PID problem
Date: Fri, 30 Apr 2004 19:06:18 -0400


>-----Message d'origine-----
>De : Jan-Henrik Haukeland [mailto:address@hidden
>Envoyé : 30 avril, 2004 17:04
>À : This is the general mailing list for monit
>Objet : Re: monit with tomcat, PID problem
>
>
>"Ugo Bellavance" <address@hidden> writes:
>
>>>-----Message d'origine-----
>>>De : Jan-Henrik Haukeland [mailto:address@hidden
>>>Envoyé : 30 avril, 2004 15:30
>>>À : This is the general mailing list for monit
>>>Objet : Re: monit with tomcat, PID problem
>>>
>>>The default tomcat startup.sh script *does* in fact put itself in the
>>>background. So I'm curios, how is the pid file for tomcat created and
>>>do you use the default tomcate startup.sh script?
>>
>> Yes I do.  However, if I remove the '&' in the catalina.sh script
>> and then I execute the startup.sh or catalina.sh script, I don't get
>> my prompt back... Am I missing something here?
>
>This is exactly what should happen[1], if you do this and use
>startup.sh from monit you should get the correct pid in the pid
>file. Right?

Ok, I'll give it a shot tomorrow, but then how do I restart tomcat manually 
when my developper updates his servlets?
I put it in the background with a ctrl-z and bg?

>
>[1] The reason you do not get your prompt back is that the script does
>an exec and replace the shell (see man exec).

I see.  It's weird.  That's the only service I know that does that...


Thanks,

>
>-- 
>Jan-Henrik Haukeland
>
>
>
>--
>To unsubscribe:
>http://mail.nongnu.org/mailman/listinfo/monit-general
>




reply via email to

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