I just posted a zip file that wraps the Jetty server (msbrowse) and allows it to be run as a Windows service.
Several people have requested this in the past, I hope you find it useful.
Please note, it has not been tested (other than by me) and is not curretnly supported. The functionality will be introduced in a future release.
This topic has been locked.
9 replies Latest Post - 2006-08-02T11:27:46Z by MaxMadsen
Pinned topic Run the MetaStage HTTP Server (Jetty) as a Windows service
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2006-08-02T11:27:46Z at 2006-08-02T11:27:46Z by MaxMadsen
Re: Run the MetaStage HTTP Server (Jetty) as a Windows servi2004-01-06T15:43:43Z in response to SystemAdminWhen you run a server application in a console window - like the current Jetty implementation - the server depends upon the console for existance. If the user that started the console window logs out, the console window closes and your server shuts down. Windows services run in the background and do not shutdown when the user logs out. This is the primary benefit of running Jetty as a service.
Re: Run the MetaStage HTTP Server (Jetty) as a Windows servi2004-01-22T13:06:50Z in response to SystemAdminAll,
I got this installed and up and running today. It works very nicely and requires little work short of the initial set up and configuration (Which is basically the same as the non-service configuration).
It is very nice not to leave a user logged in to the server to keep the services running.
One note: If you are confused as to the installation, a couple of pointers:
1. Replace the server.bat file with the with the new server.bat file
2. Put the JavaServices.exe in the same folder as the server.bat file
3. Set up configuration in the new server.bat file the same as if you are setting it up without the service exe.
4. Run the server.bat file
5. Check to see if the service is showing up in theservices console
6. Start services
Hope this helps!
Nathan, if I missed anything or spoke incorrectly, please feel free to correct me.
Re: Run the MetaStage HTTP Server (Jetty) as a Windows servi2005-11-11T18:08:33Z in response to SystemAdminHi Aaron,
I followed every step specified in your notes, but I just cannot get Jetty created as a service. When I ran the newly created server.bat file, I got just a flash of windows and I don't see Jetty is created as a service in Services.
Could you shed some light as to what am I missing. Thanks.
MaxMadsen 060000JKX31 PostACCEPTED ANSWER
Re: Run the MetaStage HTTP Server (Jetty) as a Windows servi2006-08-02T11:27:46Z in response to SystemAdminLeo,
you need to use an application such as RunAsService (or ServiceInstaller.exe) to execute the File Server.BAT as a Windows service.
Also, you'll need to modify your original Server.Bat file to avoid user logoff affecting your MS Browser availability. You must locate and change the line "set JAVA_OPTIONS=-server -Xms32m" to "set JAVA_OPTIONS=-server -Xms32m -Xrs". After that, restart the MSBRowser Windows service for changes to take effect.