Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
Thanks for the fix, I just installed it and it works great!, Also it
looks like you are detecting the windows pid better now. I noticed
that the original code always produced a pid of -1, now you are getting
numbers that look like real PID's Thanks again for the fast work
> -------- Original Message --------
> Subject: Re: [Webware-devel] appserverpid windows service issue
> From: "Jason Hildebrand" <jason@...>
> Date: Sun, December 05, 2004 8:46 pm
> To: jose@...
> Cc: "webware-devel" <webware-devel@...>, "Mark
> Phillips" <mark@...>
> Hi Jose,
> I've checked in a fix, and have improved the pid file logic to detect stale
> pid files, too. I've tested under Windows, but would appreciate
> confirmation that this fixes the problem for you, too.
> On Fri, 2004-12-03 at 12:55 -0700, jose@... wrote:
> > 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
> > Jose
> > import os, re, sys, win32serviceutil, win32api
> > # settings
> > 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
> > sys.path.insert(0, webwarePath)
> > # Construct customized version of ThreadedAppServerService that uses our
> > # specified service name, service display name, and working dir
> > from WebKit.ThreadedAppServerService import ThreadedAppServerService
> > class NTService(ThreadedAppServerService):
> > _svc_name_ = serviceName
> > _svc_display_name_ = serviceDisplayName
> > def workDir(self):
> > appserverpid = os.path.join(appWorkPath, 'appserverpid.txt')
> > if os.path.exists(appserverpid):
> > win32api.DeleteFile(appserverpid)
> > return appWorkPath
> > # Handle the command-line args
> > if __name__=='__main__':
> > win32serviceutil.HandleCommandLine(NTService)
> > > -------- 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
> > > Jose
> > -------------------------------------------------------
> > SF email is sponsored by - The IT Product Guide
> > Read honest & candid reviews on hundreds of IT Products from real users.
> > Discover which products truly live up to the hype. Start reading now.
> > http://productguide.itmanagersjournal.com/
> > _______________________________________________
> > Webware-devel mailing list
> > Webware-devel@...
> > https://lists.sourceforge.net/lists/listinfo/webware-devel
> > !DSPAM:41b109ec113589872014942!