On Sunday, Dec 14, 2003, at 23:46 US/Central, Hollis Blanchard wrote:

On Sunday, Dec 14, 2003, at 23:18 US/Central, Hollis Blanchard wrote:

+ su -s /bin/sh -c "$LAUNCH" $WEBKIT_USER >> $LOG 2>&1 &

Unfortunately the su causes $! to return a PID for the su process, which disappears instantly. So writing it to /var/run/webkit.pid later in the init script is worthless; what we really want is the PID of $LAUNCH. I guess the trailing & needs to be moved, but I can't figure it out right now. Anyone else?

A little more investigation shows that other daemons, such as sshd or xinetd, write their pid files themselves (their init scripts don't do it for them). That should be pretty easy to do from python as well in Launch.py, and I believe I saw Ian mention that the experimental standalone WebKit does this, since it writes one pid file per application server.


Comments?

-Hollis



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to