LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 08-18-2009, 12:53 PM   #31
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,775

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481

I think this is wrong:
"the K* links in the new run level directory followed by all the S*"
IIRC, the K* links are run when *leaving that runlevel, so that means they are run in the old runlevel and then the S* links in the new runlevel are run.
 
Old 08-18-2009, 03:15 PM   #32
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,563
Blog Entries: 29

Rep: Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179
Quote:
Originally Posted by gnashley View Post
I think this is wrong:
"the K* links in the new run level directory followed by all the S*"
IIRC, the K* links are run when *leaving that runlevel, so that means they are run in the old runlevel and then the S* links in the new runlevel are run.
I used to think that, too

If the evidence offered in the quoted post is not convincing then try this command
Code:
/bin/ls -l /etc/rc[2-5].d/K*
On ubuntu 8.04 there are no such files. In case you think the command is flawed, replace the K with an S.

Here's from The Linux Boot Process (my bolding)
Quote:
# Scripts prefixed with S will be started when the runlevel is entered, eg /etc/rc5.d/S99xdm
# Scripts prefixed with K will be killed when the runlevel is entered, eg /etc/rc6.d/K20apache
It may help to think of it like this. The symlinks in /etc/rc<run level>.d define the run level both by what should be running and what should not be running. If "what should not be running" was dependent on the K* scripts in the previous run level then "what should not be running" would not be consistent -- it would depend on what the previous run level was.
 
  


Reply

Tags
halt, poweroff, reboot


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
How to extend the poweroff and reboot process? (without using sysvinit) sanitynotvanity Linux From Scratch 2 08-13-2009 10:57 AM
reboot/poweroff how? demmylls Linux - General 2 08-13-2009 10:52 AM
Annoying message during reboot or poweroff janas03 Slackware 8 04-24-2008 06:05 AM
Panic; reboot/poweroff; 2.4.33.3 Tralce Linux - Kernel 0 12-04-2006 03:54 PM
reboot vs poweroff??? bigdog0007 Linux - Newbie 4 09-16-2005 03:48 AM


All times are GMT -5. The time now is 07:37 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration