Index: installers/debian/dotlrn/patches/config.dpatch =================================================================== RCS file: /usr/local/cvsroot/installers/debian/dotlrn/patches/config.dpatch,v diff -u -r1.7 -r1.8 --- installers/debian/dotlrn/patches/config.dpatch 18 Sep 2008 18:29:35 -0000 1.7 +++ installers/debian/dotlrn/patches/config.dpatch 22 Oct 2008 12:04:22 -0000 1.8 @@ -6,8 +6,8 @@ @DPATCH@ diff -urNad dotlrn-2.4.0~/etc/config.tcl dotlrn-2.4.0/etc/config.tcl ---- dotlrn-2.4.0~/etc/config.tcl 2008-09-04 14:43:05.000000000 +0200 -+++ dotlrn-2.4.0/etc/config.tcl 2008-09-18 19:43:37.000000000 +0200 +--- dotlrn-2.4.0~/etc/config.tcl 2008-09-23 16:04:25.000000000 +0200 ++++ dotlrn-2.4.0/etc/config.tcl 2008-10-22 13:16:29.000000000 +0200 @@ -24,10 +24,11 @@ # started by root, and, in AOLserver 4, the run script have a # '-b address' flag which matches the address according to settings (above) @@ -98,14 +98,21 @@ \ No newline at end of file +} diff -urNad dotlrn-2.4.0~/etc/daemontools/run dotlrn-2.4.0/etc/daemontools/run ---- dotlrn-2.4.0~/etc/daemontools/run 2008-09-04 14:43:05.000000000 +0200 -+++ dotlrn-2.4.0/etc/daemontools/run 2008-09-18 19:43:37.000000000 +0200 -@@ -9,7 +9,7 @@ +--- dotlrn-2.4.0~/etc/daemontools/run 2008-09-23 16:04:25.000000000 +0200 ++++ dotlrn-2.4.0/etc/daemontools/run 2008-10-22 13:18:55.000000000 +0200 +@@ -9,7 +9,14 @@ # see http://openacs.org/forums/message-view?message_id=176100 sleep 4 -exec /usr/lib/aolserver4/bin/nsd -it /var/www/service0/etc/config.tcl -u service0 -g web -+exec /usr/lib/aolserver4/bin/nsd -it /etc/dotlrn/config.tcl -u www-data -g www-data ++DAEMON="/usr/lib/aolserver4/bin/nsd" ++USER="www-data" ++GROUP="www-data" ++CONF="/etc/dotlrn/config.tcl" ++ADDRESS=$(grep "^set address" $CONF | sed 's/set//;s/address//;s/^[ \t]*//') ++PORT=$(grep "^set httpport" $CONF | sed 's/set//;s/httpport//;s/^[ \t]*//') ++ ++exec $DAEMON -it $CONF -u $USER -g $GROUP -b $ADDRESS:$PORT # For AOLserver 4 using privileged ports (usually < 1024), add the flag # -b youraddress:yourport to the nsd command