Hi Guiseppe,
I wrote a very small app in Visual Studio 2008 that runs from the bin directory of the GeoNetwork install to do this. It's called GeoNetworkService.exe
When you've installed it in the bin directory of your GeoNetwork install, you can add it to the windows service list using:
sc create geonetwork binPath="C:\YourGeoNetworkInstallDir\bin\GeoNetworkService.exe"
After that you can use the services control panel to start/stop geonetwork. There is an executable in the BlueNetMEST sandbox which you can get by browsing the sandbox from this url:
I haven't put the source code up there yet but will do it when I get to my windows machine over the weekend.
It would probably be better if the Jetty Windows service mentioned by Jeroen was used instead though.
Cheers,
Simon
________________________________________
From: g.molinario@anonymised.com [g.molinario@anonymised.com]
Sent: Friday, 17 December 2010 10:20 AM
To: geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] Run Jetty as Service/Scheduled task.
Dear Douglas,
Thanks for setting me on the right path!
Your instructions worked, with one exception - in 2008 R2, since it's 64
bit, the srvany.exe will not work unless invoked with the instsrv.exe.
Some info is here:
and the instructions on how to use instsrv.exe are here:
Once we figured that out, we were able to create the service properly.
The service starts, HOWEVER, it does not successfully launch jetty or
geonetwork. I have no idea why. Somehow, the service (or the scheduled task
i also tried to create) have instructions to run the start-geonetwork.bat
with my admin priviliges account, but they still encounter problems in
running the batch file, and fail.
If only there were a similar commad to nohup in windows, i'd use that. If I
can't figure it out I guess I'll have to migrate to tomcat....
thx
giuseppe
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Run-Jetty-as-Service-Scheduled-task-tp5843356p5843929.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.