I'm setting Webware up on my Windows XP Pro box.
I created a working directory, and set up mod_webkit. Now, I want to
set up Webware as a Windows service. However, the instructions in the
install guide for setting up a Windows service seem to have a few
1. While the service code in the Webware install directory is called
ThreadedAppServerService.py, the script to use in a working
directory is NTService.py.
2. I had to comment out the lines in ThreadedAppServer.py which set up
signal handlers (lines 660-662), as otherwise the service fails to
start with an error "exceptions.ValueError: signal only works in
main thread". (This isn't a good fix, but I'm not sure if/how I can
detect when the server is running as a Windows service).
3. There is no log file for the service by default. I edited
AppServer.config but it would be nice if NTServiceLogFilename was
set by default to something useful (Logs\NTService.log would be
4. Opening the log file unbuffered (bufsize=0 in the open call) is
Otherwise, it's dead simple to set up and get working. I'm seriously
This signature intentionally left blank