-   Linux - Newbie (
-   -   can't get my init script working (

nukeu666 12-06-2004 04:12 AM

can't get my init script working
i made a script 'tomcat' in /etc/init.d/tomcat

export JAVA_HOME

then i made a symbolic link to it in rc5.d by 'ln -s /etc/init.d/tomcat S99tomcat'

it doesnt work...what am i doing wrong?
im working on FC2

bathory 12-06-2004 06:16 AM

Is the script executable? What happens if you run the script from the command line?

nukeu666 12-06-2004 07:34 AM

it wasnt exceutable before....
atleast now the last line is working( but the variables are not getting set.
am i supposed to use the variable setting in another file?
if i add those export lines in /root/.bash_profile........will it be set for all users on boot?

hk_linux 12-06-2004 09:16 AM

If you in /root.bashrc, it will be only for root user.
Try putting on /etc/profile

A small point, may be worth looking into. Is the init run level in 5?

nukeu666 12-16-2004 12:12 PM

putting the env. lines in etc/profile worked
but now isnt getting run as $CATALINA_HOME/.../ or /fullpath/ or 'sh /fullpath/

and it is in runlevel 5

All times are GMT -5. The time now is 11:31 PM.