>Ok, great.
>
>How do I get seperate UID/GID's with my JVM?  Why I start it it in
>manual mode!!
>
>Well thats great, and I have the docs on the switch in the config file.
>
>So, I presume I have to start it myself.  Right?
>
>Where pray tell, or how pray tell would anyone suggest I do this?  I am
>trying to build an intelligent configuration.

Use a shell script to start the JVM separate from Apache.  First run your
script, then ./apachectl start.  When you call ./apachectl restart, the JVM
is not disturbed (at least from my observations).  Here is the script I use
(I want more memory than the default JVM and don't see how to add it except
by a script.  If you know a different way to do it, please tell me.):

#!/bin/sh
#launch jserv in manual mode

jsdk=/usr/local/jsdk/lib/jsdk.jar
jserv=/usr/local/jserv/lib/Apache-JServ.jar
jssi=/usr/local/Apache-JServ-SSI/src/ApacheJServSSI.jar
other=/usr/local

props=/usr/local/etc/optix/conf/jserv.properties
log=/usr/local/etc/optix/conf/jserv.log
classes=$jsdk:$jserv:$jssi:$other

DISPLAY=:0.0
export DISPLAY

THREADS_FLAG=native
export THREADS_FLAG

/usr/java/bin/java -Xms8m -Xmx64m -classpath $classes
org.apache.jserv.JServ $props > $log 2>&1 &

--------------------------------------------------------------------------
Thad Humphries                        "Who is this that darkens my counsel
Software Engineer (aka, Nerd)          With words without knowledge?"
Phone: 540/675-3015, ext. 225                              - Job 38:1, NIV




----------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to