Computing.Net > Forums > Linux > Autoexec at startup

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Autoexec at startup

Reply to Message Icon

Name: deity_me
Date: July 1, 2004 at 00:41:28 Pacific
OS: Slackware 10
CPU/Ram: P2 400
Comment:

A little help here
I need a program (tomcat webserver) to startup as soon as the system boots up - before any users login because there might not be any users logging in and i still need to have that webserver up and running. Also it needs environment variables such as JAVA_HOME and CLASSPATH.

Where can I put this startup script so that it starts as soon as the system boots up.


Money not an issue?
Where do you live and when are you not home?
I'm not gonna rob you, I'm just gonna steal some stuff



Sponsored Link
Ads by Google

Response Number 1
Name: taurus
Date: July 1, 2004 at 07:14:01 Pacific
Reply:

If you want to start something when the system is up, then put it in /etc/rc.d/rc.local!!! And if you want to set PATH and things like that, then add them in /etc/profile...

taurus


0

Response Number 2
Name: deity_me
Date: July 1, 2004 at 10:30:53 Pacific
Reply:

the thing is this program needs the JAVA_HOME variable before it can run.

I need a way of setting that variable before this program is run in rc.local

Money not an issue?
Where do you live and when are you not home?
I'm not gonna rob you, I'm just gonna steal some stuff


0

Response Number 3
Name: hippiejoeland (by HippieJoeLand)
Date: July 1, 2004 at 12:39:34 Pacific
Reply:

as taurus said, add the path to java home in the bottom of your /etc/profile.

PATH=$PATH:[path to Java]/bin

put this right in the bottom of the file, near your other path statements.

then like taurus said, you can add a call to the tomcat startup script at the bottom of your /etc/rc.d/rc.local file.

As far as tomcat needing the Java Home path, it should have found it on the install. there is a file you can edit, but i do not remember it. a simple but pain of a fix would be to simply download the jwsd from sun, and reinstall, one of the first steps on the install is to find the Java path and it does that automatically, assuming you have java installed aready. home this helps.

hippiejoe



0

Response Number 4
Name: Dlonra
Date: July 1, 2004 at 13:11:55 Pacific
Reply:

is /etc/profile sourced before/during /etc/rc.d/rc.local execution?

i think not.



0

Response Number 5
Name: deity_me
Date: July 1, 2004 at 13:13:05 Pacific
Reply:

Those things were giving me errors saying that JAVA_HOME was not set or something along those lines
but I managed to figure it out
just put the JAVA_HOME export line in the rc.local just before calling the tomcat startup script.

thanks for the help.

Money not an issue?
Where do you live and when are you not home?
I'm not gonna rob you, I'm just gonna steal some stuff


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon

Linux Install help SUSE 9.0 Newbie



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Autoexec at startup

Remove depmod -a at startup www.computing.net/answers/linux/remove-depmod-a-at-startup/4305.html

Disable sound check at startup www.computing.net/answers/linux/disable-sound-check-at-startup/16126.html

startup-sequence-autoexec.bat-config.sys www.computing.net/answers/linux/startupsequenceautoexecbatconfigsys/12858.html