I have the same problem on a daily basis. My method to restart the
AppServer is to check the appserverpid.txt file in the runtime
directory (not the Webware/WebKit) directory, and kill that PID. Then,
"./AppServer &" to start again. I wrote a Python script that will
either read that PID file and kill it, or parse the output of "ps aux"
and kill the appropriate PIDs. I can give that to you if you want. You
can do it through WebKit, if desired, but should do so through the
OneShot.cgi adapter, in case you need to restart the server after it's
gone to lunch.
This probably doesn't solve your problem, but I hope it helps a bit.
On Wednesday, July 16, 2003, at 09:42 PM, Roger Haase wrote:
> I am practicing the installation and running of my Webware app on a
> dedicated remote hosted linux server with ssh and WebMin access.
> A starting assumption is the way to start the AppServer is to ssh in
> and start it in the normal manner and then disconnect, leaving it
> running. Per the docs, I should be able to start another ssh session
> and issue a:
> ./AppServer stop
> This fails in the "stop" function of AppServer.py trying to:
> pidfile = os.path.join(os.path.dirname(__file__),"appserverpid.txt")
> ...which points to the WebKit directory.
> The problem seems to be the "recordPID" method of AppServer.py stored
> the PID in the mycontext directory:
> pidfile = open(os.path.join(self._serverSidePath,
> I was testing with the 8.0 release; the CVS version of AppServer.py
> seems to have some code changes but the directory mismatch appears to
> persist. I think the mycontext directory is the right place for the PID
> file to be stored, but the "stop" function (as I understand it) doesn't
> have a way to find the mycontext directory ("stop" is called from the
> "main" function in ThreadedAppServer.py).
> Using the "admin" function to stop the AppServer is probably an easy
> way around this, but I understand the recommendation is to disable the
> admin functions for production sites. I tried the kill method as well,
> but that doesn't seem to shut down cleanly and I was unable to restart
> the AppServer without rebooting.
> Any suggestions?
> Roger Haase