LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-30-2007, 03:45 AM   #1
armandino
Member
 
Registered: Oct 2005
Posts: 72

Rep: Reputation: 15
How does chkconfig manage stop sequence?


I believe I understood the way chkconfig manages the start sequence of system services: according to the information found in the "# chkconfig ..." line in every init.d script it creates symlinks (in the appropriate rcn.d directories) which have their names starting with "Snumber", where number is the start sequence priority specified in the above mentioned line.
As all the scripts in the rcn.d directory are launched (at boot time) according to their names' sequence, the start priority is assured.
I do not know, however, how the STOP priority is managed; in other words, how is the SECOND priority number in the "# chkconfig ..." line used? How does it affect the stop sequence of services?
Finally, where does chkconfig save its own database and settings?

Thanks
 
Old 06-30-2007, 05:06 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
well the 2nd number is the stop priority, the first is the start priority, so often the stop will be 100 - start, which is the K## number as opposed to the S## number, thereby reversing the order. as for the database, there is none, it's all dynamcially read from those metadata lines.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why do I get "bash: chkconfig: command not found" when I try to run chkconfig? non-thrash Fedora 10 05-20-2010 12:31 PM
how to register auto start/stop service script with chkconfig travellers Linux - Software 8 06-15-2009 11:02 AM
chkconfig re-ordering startup sequence steevojb Linux - Server 1 11-10-2006 05:30 PM
chkconfig ?? jchin Linux - Newbie 4 10-16-2003 01:59 AM
Help on chkconfig ztopher Linux - Software 0 04-09-2003 03:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:01 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