Re: [Resin-interest] Resin-4.0.5 Watchdog on Shutdown

2010-03-31 Thread Rob Lockstone
I submitted a bug on this new behavior when running Resin 4.x on Windows 
.

The problem is that when you issue a "stop" command to the resin service either 
via the sc (service controller) command, e.g. "sc \\serverName stop resin" or 
via "net stop resin", you can't then issue a "start" command to start up resin 
because Windows still thinks the service is running. We use this process for 
doing deployments or just general restarts from a central server.

I haven't tested this scenario, but another problem with this new behavior 
might be that if the watchdog doesn't know that a resin stop was specifically 
requested via the service controller, it might try to restart resin and that 
would be bad.

Rob

On Mar 30, 2010, at 11:49 , Emil Ong wrote:

> Hi Aaron,
> 
> This is the correct behavior. In 4.0.x, we changed the watchdog to be a
> long-lived process.  If you'd like to shut it down, along with all
> running resin instances, use the "shutdown" command.  We're in the
> process of updating the documentation this week to reflect the change.
> 
> Thanks,
> Emil
> 
> On Tue, Mar 30, 2010 at 11:01:23AM -0500, Aaron Freeman wrote:
>> When we try to stop the resin-4.0.5 processes using:
>> 
>> $JAVA_HOME/bin/java \
>> -server \
>> -Djava.util.logging.manager=com.caucho.log.LogManagerImpl \
>> -Djava.security.egd=/dev/urandom \
>> -Dhost=${SERVER} \
>> -Dresin.home=${RESIN_HOME} \
>> -jar ${RESIN_HOME}/lib/resin.jar \
>> -conf ${SERVER_ROOT}/conf/resin.xml \
>> $*
>> 
>> Where we pass in "start" to start it and "stop" to stop the server.  The 
>> main resin java process stops, but the watchdog does not.  Is that 
>> expected behavior (and thus a change from 3.0.x)?  If so, how do we stop 
>> the watchdog java process?  I believe Rick Mann reported the same 
>> issue.  Also we are running uncompiled, if that matters.


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Resin-4.0.5 Watchdog on Shutdown

2010-03-30 Thread Rick Mann
Thanks!

On Mar 30, 2010, at 15:25:47, Emil Ong wrote:

> On Tue, Mar 30, 2010 at 11:52:15AM -0700, Rick Mann wrote:
>> Ah! Thanks. So, does that mean it's safe to leave the watchdog running, and 
>> just issue a "start" again? I seem to recall Resin getting mad that someone 
>> already had the port when I did that.
> 
> That's correct: you can just leave the watchdog running and issue a
> start. Let us know if you run into the issue with port conflicts again.
> It should only be a configuration issue.
> 
> Emil
> 
>> On Mar 30, 2010, at 11:49:59, Emil Ong wrote:
>> 
>>> Hi Aaron,
>>> 
>>> This is the correct behavior. In 4.0.x, we changed the watchdog to be a
>>> long-lived process.  If you'd like to shut it down, along with all
>>> running resin instances, use the "shutdown" command.  We're in the
>>> process of updating the documentation this week to reflect the change.
>>> 
>>> Thanks,
>>> Emil
>>> 
>>> On Tue, Mar 30, 2010 at 11:01:23AM -0500, Aaron Freeman wrote:
 When we try to stop the resin-4.0.5 processes using:
 
 $JAVA_HOME/bin/java \
 -server \
 -Djava.util.logging.manager=com.caucho.log.LogManagerImpl \
 -Djava.security.egd=/dev/urandom \
 -Dhost=${SERVER} \
 -Dresin.home=${RESIN_HOME} \
 -jar ${RESIN_HOME}/lib/resin.jar \
 -conf ${SERVER_ROOT}/conf/resin.xml \
 $*
 
 Where we pass in "start" to start it and "stop" to stop the server.  The 
 main resin java process stops, but the watchdog does not.  Is that 
 expected behavior (and thus a change from 3.0.x)?  If so, how do we stop 
 the watchdog java process?  I believe Rick Mann reported the same 
 issue.  Also we are running uncompiled, if that matters.
 
 Thanks,
 
 Aaron
 
 
 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest
>>> 
>>> 
>>> ___
>>> resin-interest mailing list
>>> resin-interest@caucho.com
>>> http://maillist.caucho.com/mailman/listinfo/resin-interest
>> 
>> 
>> 
>> ___
>> resin-interest mailing list
>> resin-interest@caucho.com
>> http://maillist.caucho.com/mailman/listinfo/resin-interest
> 
> 
> ___
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Resin-4.0.5 Watchdog on Shutdown

2010-03-30 Thread Emil Ong
On Tue, Mar 30, 2010 at 11:52:15AM -0700, Rick Mann wrote:
> Ah! Thanks. So, does that mean it's safe to leave the watchdog running, and 
> just issue a "start" again? I seem to recall Resin getting mad that someone 
> already had the port when I did that.

That's correct: you can just leave the watchdog running and issue a
start. Let us know if you run into the issue with port conflicts again.
It should only be a configuration issue.

Emil

> On Mar 30, 2010, at 11:49:59, Emil Ong wrote:
> 
> > Hi Aaron,
> > 
> > This is the correct behavior. In 4.0.x, we changed the watchdog to be a
> > long-lived process.  If you'd like to shut it down, along with all
> > running resin instances, use the "shutdown" command.  We're in the
> > process of updating the documentation this week to reflect the change.
> > 
> > Thanks,
> > Emil
> > 
> > On Tue, Mar 30, 2010 at 11:01:23AM -0500, Aaron Freeman wrote:
> >> When we try to stop the resin-4.0.5 processes using:
> >> 
> >> $JAVA_HOME/bin/java \
> >> -server \
> >> -Djava.util.logging.manager=com.caucho.log.LogManagerImpl \
> >> -Djava.security.egd=/dev/urandom \
> >> -Dhost=${SERVER} \
> >> -Dresin.home=${RESIN_HOME} \
> >> -jar ${RESIN_HOME}/lib/resin.jar \
> >> -conf ${SERVER_ROOT}/conf/resin.xml \
> >> $*
> >> 
> >> Where we pass in "start" to start it and "stop" to stop the server.  The 
> >> main resin java process stops, but the watchdog does not.  Is that 
> >> expected behavior (and thus a change from 3.0.x)?  If so, how do we stop 
> >> the watchdog java process?  I believe Rick Mann reported the same 
> >> issue.  Also we are running uncompiled, if that matters.
> >> 
> >> Thanks,
> >> 
> >> Aaron
> >> 
> >> 
> >> ___
> >> resin-interest mailing list
> >> resin-interest@caucho.com
> >> http://maillist.caucho.com/mailman/listinfo/resin-interest
> > 
> > 
> > ___
> > resin-interest mailing list
> > resin-interest@caucho.com
> > http://maillist.caucho.com/mailman/listinfo/resin-interest
> 
> 
> 
> ___
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Resin-4.0.5 Watchdog on Shutdown

2010-03-30 Thread Aaron Freeman
Perfect, thanks!

Aaron


On 3/30/2010 1:49 PM, Emil Ong wrote:
> Hi Aaron,
>
> This is the correct behavior. In 4.0.x, we changed the watchdog to be a
> long-lived process.  If you'd like to shut it down, along with all
> running resin instances, use the "shutdown" command.  We're in the
> process of updating the documentation this week to reflect the change.
>
> Thanks,
> Emil
>
> On Tue, Mar 30, 2010 at 11:01:23AM -0500, Aaron Freeman wrote:
>
>> When we try to stop the resin-4.0.5 processes using:
>>
>> $JAVA_HOME/bin/java \
>> -server \
>> -Djava.util.logging.manager=com.caucho.log.LogManagerImpl \
>> -Djava.security.egd=/dev/urandom \
>> -Dhost=${SERVER} \
>> -Dresin.home=${RESIN_HOME} \
>> -jar ${RESIN_HOME}/lib/resin.jar \
>> -conf ${SERVER_ROOT}/conf/resin.xml \
>> $*
>>
>> Where we pass in "start" to start it and "stop" to stop the server.  The
>> main resin java process stops, but the watchdog does not.  Is that
>> expected behavior (and thus a change from 3.0.x)?  If so, how do we stop
>> the watchdog java process?  I believe Rick Mann reported the same
>> issue.  Also we are running uncompiled, if that matters.
>>
>> Thanks,
>>
>> Aaron
>>  



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Resin-4.0.5 Watchdog on Shutdown

2010-03-30 Thread Scott Ferguson
Rick Mann wrote:
> I'm seeing that same behavior.
>   
To shutdown the watchdog, use "shutdown". "start/stop" only starts and 
stops the Resin instance.

-- Scott
> On Mar 30, 2010, at 09:01:23, Aaron Freeman wrote:
>
>   
>> When we try to stop the resin-4.0.5 processes using:
>>
>> $JAVA_HOME/bin/java \
>> -server \
>> -Djava.util.logging.manager=com.caucho.log.LogManagerImpl \
>> -Djava.security.egd=/dev/urandom \
>> -Dhost=${SERVER} \
>> -Dresin.home=${RESIN_HOME} \
>> -jar ${RESIN_HOME}/lib/resin.jar \
>> -conf ${SERVER_ROOT}/conf/resin.xml \
>> $*
>>
>> Where we pass in "start" to start it and "stop" to stop the server.  The 
>> main resin java process stops, but the watchdog does not.  Is that 
>> expected behavior (and thus a change from 3.0.x)?  If so, how do we stop 
>> the watchdog java process?  I believe Rick Mann reported the same 
>> issue.  Also we are running uncompiled, if that matters.
>>
>> Thanks,
>>
>> Aaron
>>
>>
>> ___
>> resin-interest mailing list
>> resin-interest@caucho.com
>> http://maillist.caucho.com/mailman/listinfo/resin-interest
>> 
>
>
>
> ___
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest
>
>   



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Resin-4.0.5 Watchdog on Shutdown

2010-03-30 Thread Rick Mann
Ah! Thanks. So, does that mean it's safe to leave the watchdog running, and 
just issue a "start" again? I seem to recall Resin getting mad that someone 
already had the port when I did that.

On Mar 30, 2010, at 11:49:59, Emil Ong wrote:

> Hi Aaron,
> 
> This is the correct behavior. In 4.0.x, we changed the watchdog to be a
> long-lived process.  If you'd like to shut it down, along with all
> running resin instances, use the "shutdown" command.  We're in the
> process of updating the documentation this week to reflect the change.
> 
> Thanks,
> Emil
> 
> On Tue, Mar 30, 2010 at 11:01:23AM -0500, Aaron Freeman wrote:
>> When we try to stop the resin-4.0.5 processes using:
>> 
>> $JAVA_HOME/bin/java \
>> -server \
>> -Djava.util.logging.manager=com.caucho.log.LogManagerImpl \
>> -Djava.security.egd=/dev/urandom \
>> -Dhost=${SERVER} \
>> -Dresin.home=${RESIN_HOME} \
>> -jar ${RESIN_HOME}/lib/resin.jar \
>> -conf ${SERVER_ROOT}/conf/resin.xml \
>> $*
>> 
>> Where we pass in "start" to start it and "stop" to stop the server.  The 
>> main resin java process stops, but the watchdog does not.  Is that 
>> expected behavior (and thus a change from 3.0.x)?  If so, how do we stop 
>> the watchdog java process?  I believe Rick Mann reported the same 
>> issue.  Also we are running uncompiled, if that matters.
>> 
>> Thanks,
>> 
>> Aaron
>> 
>> 
>> ___
>> resin-interest mailing list
>> resin-interest@caucho.com
>> http://maillist.caucho.com/mailman/listinfo/resin-interest
> 
> 
> ___
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Resin-4.0.5 Watchdog on Shutdown

2010-03-30 Thread Rick Mann
I'm seeing that same behavior.

On Mar 30, 2010, at 09:01:23, Aaron Freeman wrote:

> When we try to stop the resin-4.0.5 processes using:
> 
> $JAVA_HOME/bin/java \
> -server \
> -Djava.util.logging.manager=com.caucho.log.LogManagerImpl \
> -Djava.security.egd=/dev/urandom \
> -Dhost=${SERVER} \
> -Dresin.home=${RESIN_HOME} \
> -jar ${RESIN_HOME}/lib/resin.jar \
> -conf ${SERVER_ROOT}/conf/resin.xml \
> $*
> 
> Where we pass in "start" to start it and "stop" to stop the server.  The 
> main resin java process stops, but the watchdog does not.  Is that 
> expected behavior (and thus a change from 3.0.x)?  If so, how do we stop 
> the watchdog java process?  I believe Rick Mann reported the same 
> issue.  Also we are running uncompiled, if that matters.
> 
> Thanks,
> 
> Aaron
> 
> 
> ___
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Resin-4.0.5 Watchdog on Shutdown

2010-03-30 Thread Emil Ong
Hi Aaron,

This is the correct behavior. In 4.0.x, we changed the watchdog to be a
long-lived process.  If you'd like to shut it down, along with all
running resin instances, use the "shutdown" command.  We're in the
process of updating the documentation this week to reflect the change.

Thanks,
Emil

On Tue, Mar 30, 2010 at 11:01:23AM -0500, Aaron Freeman wrote:
> When we try to stop the resin-4.0.5 processes using:
> 
> $JAVA_HOME/bin/java \
> -server \
> -Djava.util.logging.manager=com.caucho.log.LogManagerImpl \
> -Djava.security.egd=/dev/urandom \
> -Dhost=${SERVER} \
> -Dresin.home=${RESIN_HOME} \
> -jar ${RESIN_HOME}/lib/resin.jar \
> -conf ${SERVER_ROOT}/conf/resin.xml \
> $*
> 
> Where we pass in "start" to start it and "stop" to stop the server.  The 
> main resin java process stops, but the watchdog does not.  Is that 
> expected behavior (and thus a change from 3.0.x)?  If so, how do we stop 
> the watchdog java process?  I believe Rick Mann reported the same 
> issue.  Also we are running uncompiled, if that matters.
> 
> Thanks,
> 
> Aaron
> 
> 
> ___
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest