The included webkit SysV init script does the following:
LAUNCH='python Launch.py ThreadedAppServer'
...
$LAUNCH >> $LOG 2>&1 &Unfortunately this completely bypasses the "AppServer" script, which handles the auto-reload functionality. The result is that when you modify a file, autoreload notices and exits without being restarted by the init script. That's a problem.
Unrelated: I created my "webware" user with /sbin/nologin as the shell (which afaik is a very good idea for unused accounts). However that prevents su (also used in the init script) from working. "su -s /bin/sh" fixes that problem.
The following is the patch I made to Webware-0.8.1/WebKit/webkit . Please consider for inclusion.
--- /home/webware/Webware-0.8.1/WebKit/webkit 2001-12-27 20:16:53.000000000 -0600
+++ /etc/init.d/webkit 2003-12-14 23:13:50.000000000 -0600
@@ -11,6 +11,7 @@
# Configuration section
WEBKIT_DIR=/opt/Webware/WebKit
+WEBKIT_USER=root # for example "webware"
PID_FILE=/var/run/webkit.pid
LOG=/var/log/webkit
PYTHONPATH=
@@ -44,16 +45,12 @@
start)
echo -n "Starting WebKit: "
pushd $WEBKIT_DIR > /dev/null
- LAUNCH='python Launch.py ThreadedAppServer'
+ LAUNCH='./AppServer'# log separator
echo "---------------------------------------------------------------------- " >> $LOG
- # run as root: - $LAUNCH >> $LOG 2>&1 & - - # run as a user named 'webware': - #su -c "$LAUNCH" webware >> $LOG 2>&1 & + su -s /bin/sh -c "$LAUNCH" $WEBKIT_USER >> $LOG 2>&1 &
echo $! > $PID_FILE
popd > /dev/nullPlease CC me on replies; thanks!
-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
