Michael Trisko wrote:
> With Webware 0.8.1 we've been using /var/run/$APP_NAME.pid to store
> the pid files, so I decided to continue with that convention with 0.9.
> However, when I do a restart, it works the first time but fails after
> that.  The pidfile in the /var/run location is not there ...

So you changed the PID_FILE variable in the start script to point to /var/run instead of the working dir, right?

Note that there are two starting modes now, controlled by the variable LAUNCH_AS_WEBWARE. If the variable is set (by default), then the start script switches over to the Webware user even before the log file is written, and that user may not have the right to write to /var/run. If you want to create logfiles in /var/run, you need to unset the variable LAUNCH_AS_WEBWARE as well. In you do this, the logfile is written before switching over to the Webware user, and everything should be fine.

Also, check that you have set up your Webware user appropriately. It should usually be a user with low priviledges and owns the working dir (by default, the Webware user will be the owner of the AppServer script in your working directory).

-- Christoph


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to