LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
Search this Thread
Old 03-23-2008, 07:28 AM   #1
dabeeler
LQ Newbie
 
Registered: Mar 2008
Posts: 4

Rep: Reputation: 0
Problem with service not starting at boot


I have a file in /etc/rc2.d called S82informix which is supposed to start the informix server at boot up. This file redirects to the script in /etc/init.d called "informix". I can manually start the server by using the command "/etc/rc2.d/S82informix start". However, the server does not start at boot up as needed. The permissions on the rc2.d and init.d files are the same as all others in those two directories. If there was a bug in the script I would not be able to start it from the command line as shown above, right? Any directions on what to do next to get this to run at boot will be appreciated>

Thanks,
David
 
Old 03-23-2008, 07:55 AM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Is it correct to assume that you are booting into run level 2? Beyond that, I suggest checking your system logs to see if it gives an error at boot time. (It should definitely be attempting to execute.) It might be a problem with the sequence services are started.
 
Old 03-23-2008, 08:38 AM   #3
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
Run level 2 is supposed to not have networking support, so i doubt if you are running in that level, i suspect you are running in level 3 or level 5.

If the service supports chkconfig and you are on a redhat based system the run this

Code:
chkconfig --level 345 informix on
Or just create the symlinks in /etc/rc3.d/ and /etc/rc5.d/ depending on when run level you are running.
 
Old 03-23-2008, 04:30 PM   #4
dabeeler
LQ Newbie
 
Registered: Mar 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks datopdog, after putting the S82informix in rc3.d and rc5.d the informix server started on boot up as needed.

Thanks for the help,
David
 
Old 03-23-2008, 11:01 PM   #5
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
Originally Posted by datopdog View Post
Run level 2 is supposed to not have networking support, so i doubt if you are running in that level, i suspect you are running in level 3 or level 5.
That's what I used to believe. Before I encountered Ubuntu. It defaults to run level 2, which includes not only networking but also a GUI! I have not yet checked out Debian (on my short "to do" list) yet to see if Ubuntu inherited this from Debian or not.

@dabeeler

I'm glad you got it figured out. In the future it would be helpful to mention what distro you are using.
 
  


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
starting service at boot in ubuntu without X acid_kewpie Linux - General 6 10-21-2006 10:48 AM
starting SSH as a service during boot Flappie_Snappie Linux - Newbie 4 10-06-2006 06:15 PM
Won't Boot - Starting Printer Service - Starting CUPS jeansond Linux - Newbie 0 10-11-2004 06:39 PM
starting a service at boot time fallen26 General 5 07-31-2004 12:21 PM
Starting up a service (Postgres) on boot aa2bi Linux - Newbie 1 06-15-2004 05:34 PM


All times are GMT -5. The time now is 11:29 AM.

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