Hi. Just a quick two-centser.

Putting services like JBoss in inittab is a bad idea. How do you manage 
the server, e.g. stop it, restart it, find out its PID?

You'd be much better off writing an init script for the particular 
distro you're running. Most use SysV initscripts.

Another interesting question is how to handle running a large number of 
JBoss instances with different configurations. You could either have one 
script for each of them (or one line in inittab in your scheme) or 
possibly set up a /etc/jbosstab or something that lists the 
configurations that should be run.

Anyways, just my opinion.

Toby.

Tim Yates wrote:

> hiya!!
> 
> I just put a
> 
>   cd /opt/jboss/bin
> 
> line at the top of the run.sh file, and:
> 
> while [ 1 ]
> do
>   java -server -classpath $CLASSPATH $JETTY_FLAGS -Dtomcat.home=$TOMCAT_HOME
> org.jboss.Main tomcat $@
>   sleep 5
> done
> 
> bit round the java call in the bottom of the run.sh file (I have the tomcat
> parameter at the end as I am running with embedded tomcat)
> 
> then make sure all of your jars you need are in the classpath line, and add
> the line :
> 
> jb:634:respawn:/opt/jboss/bin/run.sh
> 
> into /etc/inittab
> 
> this seems to work for me...
> 
> Hope it helps you...
> 
> Tim.
> 
> ----- Original Message -----
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, January 03, 2001 2:19 PM
> Subject: [jBoss-User] Linux boot script
> 
> 
> 
>> Hello,
>> 
>> Perhaps I am looking at the wrong places, but I can not
>> find the Linux boot script for automatic starting. I have
>> read that the script should be available as bug #133, but
>> Bugzilla seems to do be down. Can anyone point me in the
>> right direction?
>> 
>> Thank you very much in advance,
>> Marcel



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to