|
From: <jo...@ya...> - 2004-02-25 13:51:34
|
Hi all! I know this has been a topic before but when Im reading earlier mails, the documentation and running a few tests I dont get it all. In W2k one could set the service to restart if it fails (in the recovery tab). My guess is that the return code from the service determines if the service has failed or not when stopping. The stop method from the WrapperListener returns the exit code for the service. If it returns 0 everything works the way I want, the service stops correctly. But if the exit code is not zero, that should indicate that something is wrong and the service should be restarted, but it doesnt. Instead, if the exit code is 1 the service stops and in the W2k Event Viewer shows the description of the exit code (in this case Incorrect function). Is it possible to get the Wrapper to return the code to the Service Control Manager in a way that the service will be restarted? Thanks in advance, /Jocke Höstrusk och grå moln - köp en resa till solen på Yahoo! Resor på adressen http://se.docs.yahoo.com/travel/index.html |
|
From: Leif M. <le...@ta...> - 2004-02-25 15:57:00
|
Jocke, This is actually a known problem with 3.0.5 and earlier versions. Due to a misunderstanding in the way that portion of the NT Service Manager API worked, I was not exiting the Wrapper correctly in the event of a non-zero exit code. This has been resolved and will be in the 3.1.0 release. If you are able, you can build a snapshot from CVS to get this fix early. Cheers, Leif my Mailer wrote: >Hi all! > >I know this has been a topic before but when I’m >reading earlier mails, the documentation and running a >few tests I don’t get it all. In W2k one could set the >service to restart if it fails (in the recovery tab). >My guess is that the return code from the service >determines if the service has failed or not when >stopping. The stop method from the WrapperListener >returns the exit code for the service. If it returns 0 >everything works the way I want, the service stops >correctly. But if the exit code is not zero, that >should indicate that something is wrong and the >service should be restarted, but it doesn’t. Instead, >if the exit code is 1 the service stops and in the W2k >Event Viewer shows the description of the exit code >(in this case ‘Incorrect function’). > >Is it possible to get the Wrapper to return the code >to the Service Control Manager in a way that the >service will be restarted? > >Thanks in advance, > >/Jocke > > >Höstrusk och grå moln - köp en resa till solen på Yahoo! Resor på adressen http://se.docs.yahoo.com/travel/index.html > > >------------------------------------------------------- >SF.Net is sponsored by: Speed Start Your Linux Apps Now. >Build and deploy apps & Web services for Linux with >a free DVD software kit from IBM. Click Now! >http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click >_______________________________________________ >Wrapper-user mailing list >Wra...@li... >https://lists.sourceforge.net/lists/listinfo/wrapper-user > > > |
|
From: Jennifer K. <jk...@si...> - 2004-02-26 17:48:34
|
Leif, what files in particular do I need to grab from CVS to get this fix??=20 and what revision of those files? thanks Jennifer Leif Mortenson wrote on 2/25/2004, 7:47 AM: > Jocke, > This is actually a known problem with 3.0.5 and earlier versions. Due > to a > misunderstanding in the way that portion of the NT Service Manager API > worked, I was not exiting the Wrapper correctly in the event of a > non-zero > exit code. > > This has been resolved and will be in the 3.1.0 release. If you are able= , > you can build a snapshot from CVS to get this fix early. > > Cheers, > Leif > > my Mailer wrote: > > >Hi all! > > > >I know this has been a topic before but when I=E2=80=99m > >reading earlier mails, the documentation and running a > >few tests I don=E2=80=99t get it all. In W2k one could set the > >service to restart if it fails (in the recovery tab). > >My guess is that the return code from the service > >determines if the service has failed or not when > >stopping. The stop method from the WrapperListener > >returns the exit code for the service. If it returns 0 > >everything works the way I want, the service stops > >correctly. But if the exit code is not zero, that > >should indicate that something is wrong and the > >service should be restarted, but it doesn=E2=80=99t. Instead, > >if the exit code is 1 the service stops and in the W2k > >Event Viewer shows the description of the exit code > >(in this case =E2=80=98Incorrect function=E2=80=99). > > > >Is it possible to get the Wrapper to return the code > >to the Service Control Manager in a way that the > >service will be restarted? > > > >Thanks in advance, > > > >/Jocke > > > > > >H=C3=B6strusk och gr=C3=A5 moln - k=C3=B6p en resa till solen p=C3=A5 Y= ahoo! Resor p=C3=A5 > adressen http://se.docs.yahoo.com/travel/index.html > > > > > >------------------------------------------------------- > >SF.Net is sponsored by: Speed Start Your Linux Apps Now. > >Build and deploy apps & Web services for Linux with > >a free DVD software kit from IBM. Click Now! > >http://ads.osdn.com/?ad_id=3D1356&alloc_id=3D3438&op=3Dclick > >_______________________________________________ > >Wrapper-user mailing list > >Wra...@li... > >https://lists.sourceforge.net/lists/listinfo/wrapper-user > > > > > > > > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=3D1356&alloc_id=3D3438&op=3Dclick > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > |
|
From: Leif M. <le...@ta...> - 2004-02-27 00:56:34
|
Jennifer,
There have been a large number of changes across the board. So doubt
that updating any one file would work for you. Please checkout the latest
version of the entire CVS repository and build from that.
The following page tells you how to check out the code. You will want
to check out the "wrapper" module from the repository. Once you have it
checked out you should just be able to run build.bat. This requires a JDK
and MSVC to build.
http://sourceforge.net/cvs/?group_id=39428
Cheers,
Leif
Jennifer Kolar wrote:
>Leif,
>what files in particular do I need to grab from CVS to get this fix??
>and what revision of those files?
>thanks
>Jennifer
>
>Leif Mortenson wrote on 2/25/2004, 7:47 AM:
>
> > Jocke,
> > This is actually a known problem with 3.0.5 and earlier versions. Due
> > to a
> > misunderstanding in the way that portion of the NT Service Manager API
> > worked, I was not exiting the Wrapper correctly in the event of a
> > non-zero
> > exit code.
> >
> > This has been resolved and will be in the 3.1.0 release. If you are able,
> > you can build a snapshot from CVS to get this fix early.
> >
> > Cheers,
> > Leif
> >
> > my Mailer wrote:
> >
> > >Hi all!
> > >
> > >I know this has been a topic before but when I’m
> > >reading earlier mails, the documentation and running a
> > >few tests I don’t get it all. In W2k one could set the
> > >service to restart if it fails (in the recovery tab).
> > >My guess is that the return code from the service
> > >determines if the service has failed or not when
> > >stopping. The stop method from the WrapperListener
> > >returns the exit code for the service. If it returns 0
> > >everything works the way I want, the service stops
> > >correctly. But if the exit code is not zero, that
> > >should indicate that something is wrong and the
> > >service should be restarted, but it doesn’t. Instead,
> > >if the exit code is 1 the service stops and in the W2k
> > >Event Viewer shows the description of the exit code
> > >(in this case ‘Incorrect function’).
> > >
> > >Is it possible to get the Wrapper to return the code
> > >to the Service Control Manager in a way that the
> > >service will be restarted?
> > >
> > >Thanks in advance,
> > >
> > >/Jocke
> > >
> > >
> > >Höstrusk och grå moln - köp en resa till solen på Yahoo! Resor på
> > adressen http://se.docs.yahoo.com/travel/index.html
> > >
> > >
> > >-------------------------------------------------------
> > >SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> > >Build and deploy apps & Web services for Linux with
> > >a free DVD software kit from IBM. Click Now!
> > >http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> > >_______________________________________________
> > >Wrapper-user mailing list
> > >Wra...@li...
> > >https://lists.sourceforge.net/lists/listinfo/wrapper-user
> > >
> > >
> > >
> >
> >
> >
> > -------------------------------------------------------
> > SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> > Build and deploy apps & Web services for Linux with
> > a free DVD software kit from IBM. Click Now!
> > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> > _______________________________________________
> > Wrapper-user mailing list
> > Wra...@li...
> > https://lists.sourceforge.net/lists/listinfo/wrapper-user
> >
>
>
>
>
>-------------------------------------------------------
>SF.Net is sponsored by: Speed Start Your Linux Apps Now.
>Build and deploy apps & Web services for Linux with
>a free DVD software kit from IBM. Click Now!
>http://ads.osdn.com/?ad_id56&alloc_id438&op=click
>_______________________________________________
>Wrapper-user mailing list
>Wra...@li...
>https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
>
>
|