> > Move tomcat configuration to /etc ?

I did an rc.d script myself a while ago in this style (sorry - I forgot to
pass it on) but I was following the convention of Redhat 7.1 and put my
configurations in /etc/sysconfig/tomcat  Does this break the FHS (What is
FHS??)

Cheers,
jr

> 
> Well that would be also great (missed this one, damned:)
> 
> What this bug is about is just moving
> 
> ***
> PATH=$PATH:/opt/IBMJava2-13/bin:/opt/IBMJava2-13/jre/bin
> JAVA_HOME=/opt/IBMJava2-13
> TOMCAT_HOME=/var/tomcat       
> 
> export PATH JAVA_HOME TOMCAT_HOME
> ***
> 
> to a file in /etc, for example /etc/tomcat.conf
> 
> and  add the lines
> 
> ***
> TOMCATCFG=/etc/tomcat.conf
> 
> if [ -f "$TOMCATCFG" ]; then                
>               . "$TOMCATCFG"
>         else
>                 echo $"(no tomcat configuration found)"
>                 exit 1
>         fi
> 
> ***
> 
> to /etc/rc.d/init.d/tomcat
> 
> This way /etc/rc.d/init.d/tomcat can change from one rpm to
> the next one, but /etc/tomcat.conf can be marked as a config
> file so users will keep their own parameters.
> 
> (a more complete solution is reading /etc/tomcat.conf if it
> exists, and putting defaults in  /etc/rc.d/init.d/tomcat)   
>  
> 
> ***
> 
> TOMCATCFG=/etc/tomcat.conf
> 
> [ -e $TOMCATCFG ] && . $TOMCATCFG
> 
> if [ -z "$JAVA_HOME" ]; then
>             JAVA_HOME="/opt/IBMJava2-13"
>         fi
> 
> ***
> 
> and so on.
> 
> Hope this is clear (mon anglais n'est pas fantastique)
> 
> -- 
> Nicolas Mailhot
> 

Reply via email to