Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 74741 invoked from network); 6 Jun 2002 08:46:55 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 6 Jun 2002 08:46:55 -0000 Received: (qmail 2903 invoked by uid 97); 6 Jun 2002 08:46:44 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 2847 invoked by uid 97); 6 Jun 2002 08:46:43 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 2832 invoked by uid 98); 6 Jun 2002 08:46:42 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) content-class: urn:content-classes:message Subject: AW: need X running tomcat Date: Thu, 6 Jun 2002 10:46:38 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-ID: X-MS-Has-Attach: X-MimeOLE: Produced By Microsoft Exchange V6.0.4712.0 X-MS-TNEF-Correlator: Thread-Topic: need X running tomcat Thread-Index: AcINL0QzHegrXAfSQ5qvOVl9nY+gEAAASsRg From: "Ralph Einfeldt" To: "Tomcat Users List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Better user Xvfb. Depending on the distribution you use you can place a start script like this in /etc/init.d or=20 /etc/rc.d/init.d to start xvfb. XVFB=3D/usr/X11R6/bin/Xvfb XVFBARGS=3D":99 -screen 0 1024x768x24 -fbdir /var/run -ac" PIDFILE=3D/var/run/xvfb.pid case "$1" in start) echo -n "Starting virtual X frame buffer: Xvfb" start-stop-daemon --start --quiet --pidfile $PIDFILE --make-pidfile --background --exec $XVFB -- $XVFBARGS echo "." ;; stop) echo -n "Stopping virtual X frame buffer: Xvfb" start-stop-daemon --stop --quiet --pidfile $PIDFILE echo "." ;; restart) $0 stop $0 start ;; *) echo "Usage: /etc/init.d/xvfb {start|stop|restart}" exit 1 esac exit 0 This is what we use for debian. :99 is the value for the xserver id that must be set=20 in the DISPLAY env. DISPLAY=3Dlocalhost:99.0 Additionaly you have to define a link in /etc/rc?.d to this file for the run levels where you need the Xvfb. (This is for debian, other distributions=20 For tomcat you can do the same. > -----Urspr=FCngliche Nachricht----- > Von: Michael Reutter [mailto:tomcat@meinsenf.at] > Gesendet: Donnerstag, 6. Juni 2002 09:52 > An: Tomcat Users List > Betreff: need X running tomcat >=20 >=20 > Hi! >=20 > I'm running tomcat 3.3.1 on a linux box! >=20 > my servlets need some fonts to generate some images. > Now I have to do the following to start tomcat: >=20 > (no X is running) > login as root > startx & > export DISPLAY=3Dmyserver:0 > tomcat.sh start >=20 > or >=20 > start xdm > login as root > tomcat.sh start >=20 > 1. Am I on the right way??? >=20 > 2. How to automate this, so my tomcat runs after a reboot ... >=20 >=20 > thanks > michi >=20 > -- > To unsubscribe, e-mail: =20 > > For additional commands, e-mail:=20 > >=20 >=20 >=20 -- To unsubscribe, e-mail: For additional commands, e-mail: