LinuxQuestions.org
Visit the LQ Articles and Editorials 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 09-25-2009, 02:58 PM   #1
shmeezy
LQ Newbie
 
Registered: Sep 2009
Posts: 1

Rep: Reputation: 0
Post Startup Programs


Hi, I am new to Linux and I'm using a Linux/Suse OS. I have just installed MYSQL, Java JDK 1.5, and Tomcat 5, in order to run a Help Desk Program. Everything is working good but I need to set all of the programs to load on boot in this sequence. MySQL, Java, then Tomcat 5 Then the Help desk. How do I lookup the boot processes and setup this boot sequence?

Thank you in advance!
 
Old 09-26-2009, 02:27 AM   #2
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 101Reputation: 101
Quote:
Originally Posted by shmeezy View Post
Hi, I am new to Linux and I'm using a Linux/Suse OS. I have just installed MYSQL, Java JDK 1.5, and Tomcat 5, in order to run a Help Desk Program. Everything is working good but I need to set all of the programs to load on boot in this sequence. MySQL, Java, then Tomcat 5 Then the Help desk. How do I lookup the boot processes and setup this boot sequence?

Thank you in advance!
MySQL will start without any special effort -- just enable the service.

Java is not an application program and it doesn't need to be "started".

Tomcat is a service AFAIK, same as MySQL. Just enable the service to run at boot.

Help Desk sounds like an application -- put a reference to it in /etc/rc.local.

If any of this sounds mysterious and incomprehensible, maybe a bit of Web browsing on the topic of server management is in order.
 
Old 09-26-2009, 02:31 AM   #3
saifkhan123
Member
 
Registered: Apr 2009
Distribution: Red Hat/CentOS
Posts: 108

Rep: Reputation: 19
lookup init.d files

all you have to do is to lookup into the start/stop scripts of all the applications i.e. MySQL, Tomcat, which in my case(i use CentOS 5.3) are present in /etc/init.d, lets say you want to set boot priority for MySQL, then you have to edit the file

Code:
# vi /etc/init.d/mysqld
which is the start/stop file for MySQL, you have to find start/stop files for Java and Tomcat similarly in /etc/init.d directory, make sure that you backup the original file somewhere before you edit it,

Now The first few lines of mysqld will be like
Code:
#!/bin/bash
#
# mysqld        This shell script takes care of starting and stopping
#               the MySQL subsystem (mysqld).
#
# chkconfig: 345 64 36
# description:  MySQL database server.
# processname: mysqld
# config: /etc/my.cnf
# pidfile: /var/run/mysqld/mysqld.pid
Now the line
Code:
# chkconfig: 345 64 36
states that, MySQL will run on runlevels 3,4 and 5, and the boot priority for starting up is 64, and for stopping is 36. Now if you want Tomcat to start after the Mysql, you can set the line in Tomcat start/stop script as
Code:
# chkconfig: 345 65 35
this will start Tomcat immediately after MySQL and stop it just before stopping MySQL. Save and exit the files and then make sure they are started at boot time by typing the commands
Code:
# chkconfig --add mysqld
# chkconfig --add tomcat
hope that you have got the idea

Last edited by saifkhan123; 09-26-2009 at 02:39 AM.
 
Old 09-26-2009, 02:41 AM   #4
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mandriva, CentOS, Ubuntu
Posts: 456

Rep: Reputation: 69
If your helpdesk app is a GUI app. Then you'll need to start it from the session manager of your desktop. This is different from every desktop. U'll need to tell us what ur running.
 
  


Reply

Tags
boot, java, linux, start, startup, stop, suse, tomcat5


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
Managing startup programs; removing YOU icon from startup General Suse/Novell 2 06-14-2007 09:48 PM
Startup Programs bad_andy Suse/Novell 5 05-03-2006 09:06 PM
Startup programs beatlelane Fedora 5 08-22-2005 03:05 AM
need help with startup programs SlackwareMan Linux - Newbie 4 07-29-2004 05:45 PM
Programs on startup durden2.0 Linux - Newbie 7 06-02-2003 03:13 AM


All times are GMT -5. The time now is 04:12 PM.

Main Menu
Advertisement
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