LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-20-2006, 12:36 PM   #1
mikedia
LQ Newbie
 
Registered: Jun 2006
Posts: 2

Rep: Reputation: 0
What does ckconfig do?


I installed TOMCAT on my linux box.

I created a shell script "tomcat" and placed it in /etc/rc.d/init.d

Then I executed the commands:

chkconfig --add tomcat


Where does this command place the daemon tomcat? There is no tomcat entry in /etc/inittab

Surely, the chkconfig placed a "tomcat" entry in some file? But which one?

Thanks.
 
Old 06-20-2006, 12:55 PM   #2
bernied
Member
 
Registered: Mar 2006
Location: Edinburgh, UK
Distribution: debian
Posts: 304

Rep: Reputation: 30
Do you have directories like
/etc/init/rc.X
or
/etc/rc.X
where X is a number between 0 and 6?
or
/etc/runlevels/xxxx
where xxxx is default, boot, single etc

These directories will contain soft links to init (and shutdown) scripts contained in /etc/rc.d/init.d

So all the scripts are kept in one place and to put them into a runlevel, a link is added to them in the directory for that runlevel.

The way this is done is distribution specific, so if you can't find these directories, then your distro (if you put it in your profile then people will be better able to help you) does something a little bit different. I'm sure it's in your distributions policy manual.
 
  


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




All times are GMT -5. The time now is 04:28 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration