I have the following in /etc/profile.d which works fine but I would like
to move it to /etc/rc.d/init.d and then link it to the correct run
level.

export JAVA_HOME=/jdev/j2sdk1.4.1
export PATH=$JAVA_HOME/bin:$PATH
export CATALINA_HOME=/jdev/jakarta-tomcat-4.1.17
$CATALINA_HOME/bin/startup.sh &
/bin/sh -c 'cd /usr ; ./bin/safe_mysqld --user=mysql &'

If I put it there however, Tomcat and MySql don't start. (I was told
that since they are system processes and not for a local user they'd
best be in init.d)

I put #!/bin/sh at the top and named the link s30tom_and_mysql and tried
several versions of it with /bin/sh -c in front of all the statements
ect...

There are also sh scripts for tomcat and mysql that could be placed in
init.d and calling them with /ect/rc.d/init.d/mysql start works fine but
placing a link in rc5.d doesn't (with tomcat that's because the
JAVA_HOME wasn't set but for mysql I haven't a clue).

I believe I checked permissions for all the executables.

Any tips? Pointers?

TIA,

Shawn


PS I guess I'd prefer to call

 $CATALINA_HOME/bin/startup.sh &
/bin/sh -c 'cd /usr ; ./bin/safe_mysqld --user=mysql &'

instead of putting the scripts in init.d so I can create a user with no
permissions and run it via suinstead of root



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to