Hi Jason,

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

Jose

> -------- Original Message --------
> Subject: Re: [Webware-devel] appserverpid windows service issue
> From: "Jason Hildebrand" <[EMAIL PROTECTED]>
> Date: Sun, December 05, 2004 8:46 pm
> To: [EMAIL PROTECTED]
> Cc: "webware-devel" <[EMAIL PROTECTED]>, "Mark
> Phillips" <[EMAIL PROTECTED]>
>
> 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.
>
> peace,
> Jason
>
> On Fri, 2004-12-03 at 12:55 -0700, [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
> > > Date: Fri, December 03, 2004 11:35 am
> > > To: [EMAIL PROTECTED]
> > >
> > > 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
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/webware-devel
>
> > !DSPAM:41b109ec113589872014942!



-------------------------------------------------------
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
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to