|
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 |