Hello.

I made an AppWorkDir with MakeAppWorkDir.py, and I've been having a
problem where I can start it, and the appserverpid.txt is dropped in
the AppWorkDir, but then when I stop it, I get this exception:

Traceback (most recent call last):
  File "./Launch.py", line 37, in ?
    main(sys.argv)
  File "./Launch.py", line 33, in main
    WebKit.Launch.launchWebKit(args[1], appWorkPath, args[2:])
  File "Launch.py", line 58, in launchWebKit
    main(sys.argv)
  File "./WebKit/ThreadedAppServer.py", line 713, in main
  File "/home/jtr/yammer.net/external/Webware/WebKit/AppServer.py", line 335, in stop
    os.kill(pid,signal.SIGINT)
OSError: [Errno 3] No such process
AppServer stopped

A little elementary debugging points the finger at this line in
AppServer.stop, line 330:

    pidfile = os.path.join(os.path.dirname(__file__),"appserverpid.txt")

so it's looking for the appserverpid.txt file in the same directory 
as AppServer.py, i.e. Webware/WebKit, instead of in the working
directory.  

So the start and daemon operations dump the pid file in the
AppWorkDir, but stop looks for it in the Webware directory.  Am I
misunderstanding something?

I'm using Webware 0.8.1, but the line above is present in the CVS
mainline version as well.


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to