You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Andrew C. Oliver" <ac...@apache.org> on 2002/04/22 03:30:06 UTC
slightly OT: linux scripts for running
apache2/tomcat/cocoon/batik/xvfb all together (yumm)
This is mildly off-topic -- but I think a good quickstart on how to get
headless X-server up with batik/cocoon is kinda called for.
Okay here are my scripts used to get tomcat/cocoon/batik functioning
nicely with SVG. These are adaptations of old scripts I had and are
quite possibly covered/infected by GPL or something...
My setup:
jdk1.3.1_02 (don't use _03 it has a random zip obfuscation feature)
RedHat 7.2
Kernel 2.4.9-smp special redhat version (probably fixes the memory
management issue.. On my desktop I run with 2.4.17 -- much faster --
got 2.4.9-smp from up2date)
Apache 2.0.35
Tomcat 4.0.4b2 (don't use 4.0.2/3 they're duds -- 4.0.1 works okay
though)
Latest mod_webapp -- boy was compiling that fun... but thats for another
mail list!
HEAD of Cocoon CVS from today
latest Xvfb from rpmfind
-- I altered tomcat/bin/setclasspath.sh by adding
export DISPLAY=:1
to it
My apache script runs before my tomcat script, but I don't think it
matters.
this is in
/etc/rc.d/init.d/tomcat
and is linked in rc3.d as S85tomcat
#! /bin/sh
start(){
echo "starting tomcat.."
Xvfb :1 -screen 0 800x600x8 &
sleep 5
su -l tomcat -c 'export DISPLAY=:1'
su -l tomcat -c '/opt/tomcat/bin/startup.sh'
}
stop(){
echo "stopping tomcat.."
killall Xvfb
su -l tomcat -c '/opt/tomcat/bin/shutdown.sh'
}
restart(){
stop
sleep 2
start
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
*)
echo "Usage: postgresql {start|stop|restart}"
exit 1
esac
exit 0
--
http://www.superlinksoftware.com
http://jakarta.apache.org/poi - port of Excel/Word/OLE 2 Compound
Document
format to java
http://developer.java.sun.com/developer/bugParade/bugs/4487555.html
- fix java generics!
The avalanche has already started. It is too late for the pebbles to
vote.
-Ambassador Kosh
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: slightly OT: linux scripts for running apache2/tomcat/cocoon/batik/xvfb
all together (yumm)
Posted by Andrew Savory <an...@luminas.co.uk>.
Hi Andrew,
On 21 Apr 2002, Andrew C. Oliver wrote:
> This is mildly off-topic -- but I think a good quickstart on how to get
> headless X-server up with batik/cocoon is kinda called for.
Yup. See also http://www.luminas.co.uk/technology/cocoon/initscript.html
which works nicely on Debian boxes.
Andrew.
--
Andrew Savory Email: andrew@luminas.co.uk
Managing Director Tel: +44 (0)870 741 6658
Luminas Internet Applications Fax: +44 (0)870 28 47489
This is not an official statement or order. Web: www.luminas.co.uk
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>