|
From: Leif M. <le...@ta...> - 2005-11-29 07:49:16
|
Luis,
What is the error that you are seeing while stopping the service?
The "net stop app"
command will time out if the app takes a while to shutdown.
If you use "wrapper -p wrapper.conf" to stop the service, you will not
have this problem.
You mentioned the pid. You can actually do this under windows, it
is just not on by
default. Take a look at the wrapper.pidfile and wrapper.java.pidfile
properties. The
later will give you a pid file for the actual JVM.
Version 3.2.0 will contain several new ways to test the status of a
service and also
includes several new status files.
Cheers,
Leif
Luis Varon wrote:
> Dear Leif,
>
> The liveupdate tries indeed to stop the service. We have sometimes the case that while stopping the service and the application we get an error message from the application so that the service cannot be stopped correctly and it's still running (Status: Stop Pending) after the LiveUpdate is down.
>
> Under unix i could solve an similar problem by looking if the pid - file still exists (otherwise sleep for an few seconds and try again) but under windows there is not this possibility. Do you know a possibility how i can prevent the service to be started if the service is still in status Stop Pending?
>
> Many thanks.
>
> Cheers,
>
> Luis.
>
> -----Ursprüngliche Nachricht-----
> Von: wra...@li... [mailto:wra...@li...] Im Auftrag von Leif Mortenson
> Gesendet: Dienstag, 29. November 2005 04:30
> An: wra...@li...
> Betreff: Re: [Wrapper-user] Problems stopping the wrapper
>
> Luis,
> I am not completely clear about what is happening. It sounds like
> your live update
> application is attempting to stop the Wrapper as a service, update some files and then quickly restart it. Is that correct?
>
> When you attempt to restart the service, you are then getting an error that the service
> is still being stopped. My guess here is that this is not a wrapper a
> problem but rather
> a problem with your live update tool. It doesn't sound like it is correctly waiting for the service to stop before continuing.
>
> Let me know if I am misunderstanding something.
>
> Cheers,
> Leif
>
>
> Luis Varon wrote:
>
>> Dear Ladies and Gentleman,
>>
>> We are using the java service wrapper to stop and start our java application.
>>
>> In some cases we have problems stopping our application which causes the wrapper to fail with an error message however the application is stopped also. Normally this is not an big problem if we restart our application but it is if we restart the application using our liveupdate functionality. In this case the Liveupdate (a process which stops the application, updates the system and restart the application) is finished to fast and while trying to start the wrapper we receive the error message "The ipex scheduler service service is already running with status: STOP_PENDING" and the application is not started.
>>
>> I would like to ask you if you have had this problem and how has it been solved and if not maybe you know an parameter which can be set and which slows down the start of the application.
>>
>> Many thanks in advance for your efforts.
>>
>> Kind regards
>>
>> Luis Varon Marques
>> iPoint-systems gmbh
>>
|