Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-06-2004, 03:12 AM
|
#1
|
|
Member
Registered: Mar 2004
Location: India
Distribution: MDK, Fedora, Debian Unstable (current)
Posts: 80
Rep:
|
can't get my init script working
i made a script 'tomcat' in /etc/init.d/tomcat
#!/bin/sh
JAVA_HOME=/usr/java/j2sdk1.4.2_05/
CLASSPATH=/usr/jakarta-tomcat-4.1.31/common/lib/servlet.jar
CATALINA_HOME=/usr/jakarta-tomcat-4.1.31
export JAVA_HOME
export CLASSPATH
export CATALINA_HOME
.$CATALINA_HOME/bin/startup.sh
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
|
|
|
|
12-06-2004, 05:16 AM
|
#2
|
|
Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,363
|
Is the script executable? What happens if you run the script from the command line?
|
|
|
|
12-06-2004, 06:34 AM
|
#3
|
|
Member
Registered: Mar 2004
Location: India
Distribution: MDK, Fedora, Debian Unstable (current)
Posts: 80
Original Poster
Rep:
|
it wasnt exceutable before....
atleast now the last line is working(startup.sh) 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?
|
|
|
|
12-06-2004, 08:16 AM
|
#4
|
|
Member
Registered: Nov 2004
Location: India
Distribution: RedHat, PCQLinux, Fedora
Posts: 95
Rep:
|
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?
|
|
|
|
12-16-2004, 11:12 AM
|
#5
|
|
Member
Registered: Mar 2004
Location: India
Distribution: MDK, Fedora, Debian Unstable (current)
Posts: 80
Original Poster
Rep:
|
putting the env. lines in etc/profile worked
but now startup.sh isnt getting run as $CATALINA_HOME/.../startup.sh or /fullpath/startup.sh or 'sh /fullpath/startup.sh/
and it is in runlevel 5
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:02 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|