Edmund Lian wrote:
> Jaroslaw Zabiello wrote:
>> Is there any way to make service of webkit (I use NTService.py) to
>> autorestart after changing Application.config or some crucial
>> servlets? I can do it but only when I start WebKit from
>> AppServer.bat. When I run WebKit as service (I set up it as
>> autostart) after changings the service does not restart. It only
>> stops and I have to start it manually. :(
> I believe there might be. Quite some time ago, I had asked about how
> to add files to the file watch list that the auto restarter uses. I
> can't remember the details now, but if you can search the archives
> (something that I find hard to do myself), there is some traffic
> about it between myself and Geoff (I think).
I'm pretty sure the auto-restart stuff does NOT work for an NT service, last
time I checked.
What I think should be done is that instead of running the appserver _in_
the service process, as NTService.py does, the service process would be a
monitoring stub that starts up the appserver itself as a separate process.
Basically, the service would just be AppServer.bat rewritten as a simple
Python service. It would also be a good idea to beef it up so that it can
restart the process if it crashes.
I'd be happy for someone else to attempt this... otherwise I might get to it