You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Ning Li <Ni...@businessobjects.com> on 2006/11/01 21:10:18 UTC
prunsrv - window service get restarted all the time
Hi,
I am using prunsrv.exe to run my Java app as a windows service, I
configured the windows service recovery policy as "restart the service"
for service failure. In my java Main() method, some conditions have to
meet, otherwise it will call System.exit(0), and shutdown the app. But
it seems that prunsrv won't be able to detect that the Java app has
stopped normally, inside prunsrv.c, apxJavaStart(hWorker) method will
succeed and the service will be marked as running, when it goes to
apxJavaWait(hWorker, INFINITE, FALSE)method, prunsrv.exe suddenly abort
without even return from that method. Then windows will try to restart
the service again and again.
If I let apxJavaStart(hWorker) method returns a failure, prunsrv.exe
seems handle everything properly, and windows won't try to restart the
service again. But the problem is I cannot find a way for prunsrv.exe to
detect Java app has exit, and fail the apxJavaStart(hWorker) method.
Is this a known issue? How can I workaround the problem?
Thanks
Ning
Re: [daemon] Re: Obtaining procrun for Win32
Posted by Bill Barker <wb...@wilshire.com>.
"Henri Yandell" <fl...@gmail.com> wrote in message
news:31cc37360611020026h716326d7q7c25ea40c162a3f3@mail.gmail.com...
> Hi David,
>
> This thread might be of use:
> http://mail-archives.apache.org/mod_mbox/jakarta-commons-user/200606.mbox/%3C7.0.1.0.0.20060613234131.04c53c98@visi.com%3E
>
> Looking at my last year of user archives, I don't see any questions on
> daemon being answered and I can see lots of svn commits for it so it's
> still active. Ccing the commons-dev list to point this out to the
> daemon developers.
>
Yes, the [daemon] developers are mostly Tomcat developers with little
involvement with other commons projects. That is probably why the don't
hang out on comons-user (I know it is my reason :). You can always send
them over to users@tomcat, where there are plenty of people to answer
[daemon] question.
And the thread cited above is probably the best answer to the user's
question.
> Thanks,
>
> Hen
>
> On 11/1/06, David Sills <DS...@datasourceinc.com> wrote:
>> Hi there:
>>
>> I went to look on the commons daemon site for Procrun, and although I
>> see a page explaining its use, I see nowhere from which to download the
>> software. The "Native binaries" page has only versions for various UNIX
>> flavors.
>>
>> Sorry if I am being dense, but I really like Apache software, and would
>> like to consider Procrun as a Windows service provider along with some
>> other options for adoption.
>>
>> Any advice would be gratefully received.
>>
>> Thanks!
>>
>> David Sills
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
[daemon] Re: Obtaining procrun for Win32
Posted by Henri Yandell <fl...@gmail.com>.
Hi David,
This thread might be of use:
http://mail-archives.apache.org/mod_mbox/jakarta-commons-user/200606.mbox/%3C7.0.1.0.0.20060613234131.04c53c98@visi.com%3E
Looking at my last year of user archives, I don't see any questions on
daemon being answered and I can see lots of svn commits for it so it's
still active. Ccing the commons-dev list to point this out to the
daemon developers.
Thanks,
Hen
On 11/1/06, David Sills <DS...@datasourceinc.com> wrote:
> Hi there:
>
> I went to look on the commons daemon site for Procrun, and although I
> see a page explaining its use, I see nowhere from which to download the
> software. The "Native binaries" page has only versions for various UNIX
> flavors.
>
> Sorry if I am being dense, but I really like Apache software, and would
> like to consider Procrun as a Windows service provider along with some
> other options for adoption.
>
> Any advice would be gratefully received.
>
> Thanks!
>
> David Sills
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
[daemon] Re: Obtaining procrun for Win32
Posted by Henri Yandell <fl...@gmail.com>.
Hi David,
This thread might be of use:
http://mail-archives.apache.org/mod_mbox/jakarta-commons-user/200606.mbox/%3C7.0.1.0.0.20060613234131.04c53c98@visi.com%3E
Looking at my last year of user archives, I don't see any questions on
daemon being answered and I can see lots of svn commits for it so it's
still active. Ccing the commons-dev list to point this out to the
daemon developers.
Thanks,
Hen
On 11/1/06, David Sills <DS...@datasourceinc.com> wrote:
> Hi there:
>
> I went to look on the commons daemon site for Procrun, and although I
> see a page explaining its use, I see nowhere from which to download the
> software. The "Native binaries" page has only versions for various UNIX
> flavors.
>
> Sorry if I am being dense, but I really like Apache software, and would
> like to consider Procrun as a Windows service provider along with some
> other options for adoption.
>
> Any advice would be gratefully received.
>
> Thanks!
>
> David Sills
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Obtaining procrun for Win32
Posted by David Sills <DS...@datasourceinc.com>.
Hi there:
I went to look on the commons daemon site for Procrun, and although I
see a page explaining its use, I see nowhere from which to download the
software. The "Native binaries" page has only versions for various UNIX
flavors.
Sorry if I am being dense, but I really like Apache software, and would
like to consider Procrun as a Windows service provider along with some
other options for adoption.
Any advice would be gratefully received.
Thanks!
David Sills
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org