Now I know that this is not the correct way to fix this on windows
(mainly because I don't think that the appserverpid file is usefull on
windows) but here is a hack to the NTService.py file to get around this
issue. I'll wait for someone who know more about the inner working os
webware then me to fix the problem
see code below
import os, re, sys, win32serviceutil, win32api
appWorkPath = 'C:/Program Files/Apache Group/WK_main'
webwarePath = 'c:/Python23/Lib/site-packages/Webware'
serviceName = 'WK_Root'
serviceDisplayName = 'WebKit Root App Server'
# ensure Webware is on sys.path
# Construct customized version of ThreadedAppServerService that uses our
# specified service name, service display name, and working dir
from WebKit.ThreadedAppServerService import ThreadedAppServerService
_svc_name_ = serviceName
_svc_display_name_ = serviceDisplayName
appserverpid = os.path.join(appWorkPath, 'appserverpid.txt')
# Handle the command-line args
> -------- Original Message --------
> Subject: appserverpid windows service issue
> From: jose@...
> Date: Fri, December 03, 2004 11:35 am
> To: webware-devel@...
> The latest checkins with respect the the new appserverpid code breaks
> the windows service code. when the windows service is shutdown
> apparently this file is not removed, consequently the service will not
> restart. Any thoughts as to a workaround? this would really prevent
> me from using this code on a windows production server, especially in
> light of the new version being rolled out soon