LinuxQuestions.org
Review your favorite Linux distribution.
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 12-12-2008, 11:29 AM   #1
lumix
Member
 
Registered: Mar 2007
Distribution: Hardy (Gnome on Ubuntu 8.04) on Compaq N600c laptop
Posts: 323

Rep: Reputation: 30
Why do modern distros use startups linked from rcx.d ?


Just wondering...is it so that you can easily enable/disable the startups without deleting or renaming the script?

Last edited by lumix; 12-12-2008 at 11:34 AM.
 
Old 12-12-2008, 12:11 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Nope, because all you'd NEED to do is chmod -x'ing it ...
I think (I don't know, and Slackware doesn't actively
use that style [while it does support it]) it's because
it makes it easy to decide in a) which order and b) for
which runlevels to execute a script.
 
Old 12-12-2008, 02:34 PM   #3
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
Tinkster correct me if I am wrong but it also deals with the fact that a script only needs to be written once then linked too. Most of the rcX.d scripts are symbolic links. With that and the ability to decide on what will be called on each runlevel. That is how I always understood it. That was one of the biggest differences in BSD style in sysV systems I think.
 
Old 12-12-2008, 05:18 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Nope, that's perfectly correct. :}

The wrapper that loops over the scripts (symlinks) in
the per-runlevel directories will invoke the with a
start or stop, depending on their name (K vs S).
 
  


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
Iptables & 2.6.16-rcX lukebeales Linux - Networking 2 03-13-2006 11:18 PM
How to compile BasiliskII 0.9 on modern Linux distros ssokolow Linux - Software 0 09-01-2004 02:47 AM
Is multiplayer with loki games possible on modern distros? tonys_ Linux - Games 1 04-12-2004 02:48 PM
Winxp linked to Linux Linked to home network OverboardKiller Linux - Networking 2 06-09-2003 10:59 AM
/etc/rc.d/rcX.d does not exist !!!!!!!!!!!!! safrout Linux From Scratch 6 11-10-2002 07:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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