Cindy Ballreich <[EMAIL PROTECTED]> wrote:
> I have a very basic RedHat 7.0 web server (Apache 1.3.20) and I want
> to run Cocoon 2.0 with Tomcat 3.3. Apparently, I also need to run
> Xvfb in order for Cocoon to work properly. I would very much like to
> start Xvfb at boot time along with all of the other web
> services. I've written an init.d script to do this.
<snip/>
> start)
> echo -n "Starting Xvfb services: "
> Xvfb :1 -screen 0 800x600x8 &
> export DISPLAY=:1
<snip/>
Maybe add export DISPLAY=:1 in the tomcat startup script.
Personnaly, I launch Xvfb _in_ the tomcat startup script (maybe not a
good solution but it works). the lines were submitted on this list by
Jan Warnstam, here they are:
start)
if [ -f /tmp/.X47-lock ]; then
# parfait, il y a un serveur
echo "XServer already running"
else
# ici j'insere une ligne pour resoudre le probleme de XFree
# ces deux lignes ont ete envoyees par Jan Warnstam
# <[EMAIL PROTECTED]>
export DISPLAY=localhost:47
su root -c "Xvfb :47 -screen 1 640x480x16" -s /bin/sh &
fi
Regards,
-- Arnaud, STE-Formations Informatiques, fapse, ULg, .BE
---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>