LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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

Reply
 
Search this Thread
Old 06-24-2005, 12:14 PM   #1
bpellet314
LQ Newbie
 
Registered: Nov 2004
Posts: 20

Rep: Reputation: 0
Where do I Put the Command Application Startup


Hi All. I want to put this command:
cd /opt/WebShere ; startServer.sh server1
Into a file so it executes at boot time. I want it to be the last command to run in the boot up. Can it be done and if so where would I put the command? Thanks all.
Bob
 
Old 06-24-2005, 12:18 PM   #2
elsheikhmh
Member
 
Registered: Aug 2004
Location: Cairo, Egypt
Distribution: Slackware
Posts: 101

Rep: Reputation: 15
maybe /etc/rc.d/rc.local

this will be global.

BTW, is this the Websphere Application Server? or something else; Webshere?

mustafa
 
Old 06-24-2005, 12:34 PM   #3
bpellet314
LQ Newbie
 
Registered: Nov 2004
Posts: 20

Original Poster
Rep: Reputation: 0
Hi. Thanks for responding. It is a WebShoere server. I put it in rc.local BUT it starts before DB2 and bombs out. Is there somewhere else it can go and start later in the boot? Thanks.
Bob
 
Old 06-24-2005, 12:39 PM   #4
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
Change the priority of the file. Give more priority to DB2. By this way DB2 will start up before Websphere.

-Prasanta
 
Old 06-24-2005, 01:28 PM   #5
bpellet314
LQ Newbie
 
Registered: Nov 2004
Posts: 20

Original Poster
Rep: Reputation: 0
How would I change the priority of DB2? Thanks.
Bob
 
Old 06-25-2005, 08:07 AM   #6
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
First determine your default runlevel, then go to he directory of rc5.d inside /etc (the number 5 depends on your runlevel), there you'll find files with names S70DB2 or something like that.. to change the priority level (indicated by that 70) to something more then that of Websphere. You can change it by renaming the file only.

-Prasanta
 
Old 07-07-2005, 11:30 AM   #7
Jay_Drummond
Member
 
Registered: Jul 2005
Location: Ohio
Distribution: CentOS 4 & 5, Ubuntu 7.04 & 7.10
Posts: 38

Rep: Reputation: 15
The answer to your question can be found in the following redpaper on the IBM site:
Title: IBM WebSphere V5.0 for Linux, Implementation and Deployment Guide: WebSphere Handbook Series
Location: Click here
Sample scripts are in Appendix C:

Last edited by Jay_Drummond; 01-05-2008 at 10:06 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Put the command for installing the CLAWPACK realtug Linux - General 2 10-24-2005 04:39 AM
where to put startup commands nickcol Linux - General 1 05-10-2005 06:00 AM
How to put fetchmail in startup ?? jacquedp Linux - Software 4 03-10-2005 10:58 AM
Where to put this command? rsamurti Slackware - Installation 4 08-10-2004 01:45 PM
How to put programs in startup emanners Linux - General 2 07-09-2001 03:04 PM


All times are GMT -5. The time now is 08:54 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration