Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Other Versions > EOL (End Of Life) Versions
FedoraForum Search

Forgot Password? Join Us!

EOL (End Of Life) Versions This is a Forum to discuss problems and workarounds for versions of Fedora that have passed End of Life.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 20th November 2012, 11:34 PM
settingsun Offline
Registered User
 
Join Date: Aug 2011
Posts: 150
linuxfedorafirefox
I see sym links for runlevels in 2 diff directories. Shouldn't it be just one?

I use Fedrora 13. I'm going to upgrade soon. I was looking in the /etc directory and saw run level control directories in two different places.

I see runlevel symbolic links in:
Code:
/etc/rc0.d
/etc/rc1.d
/etc/rc2.d
and so on....
and:
Code:
/etc/rc.d/rc0.d
/etc/rc.d/rc1.d
/etc/rc.d/rc2.d
and so on...
Which group of directories holds the symbolic links that are actually used at startup for each runlevel?

Why two different locations?

Is there a configuration file somewhere that determines which directory is used?

Thank you

Last edited by settingsun; 20th November 2012 at 11:37 PM.
Reply With Quote
  #2  
Old 20th November 2012, 11:48 PM
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,935
linuxfirefox
Re: I see sym links for runlevels in 2 diff directories. Shouldn't it be just one?

The DIRECTORIES are just links too.
Quote:
[stevea@mail ~]$ ls -ld /etc/rc3.d
lrwxrwxrwx. 1 root root 10 May 4 2012 /etc/rc3.d -> rc.d/rc3.d
So they are necessarily identical. Doesn;t matter which you use,
I *think* the reason is that there were some legacy services that expected /etc/rcN.d
I *believe that /etc/rc.d/rcN.d is preferred.

F13 is way way legacy and your question belongs on the EOL threads.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #3  
Old 20th November 2012, 11:56 PM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,330
linuxfirefox
Re: I see sym links for runlevels in 2 diff directories. Shouldn't it be just one?

I was going to move this to EOL, but it appears it was already there
Reply With Quote
  #4  
Old 21st November 2012, 12:15 AM
settingsun Offline
Registered User
 
Join Date: Aug 2011
Posts: 150
linuxfedorafirefox
Re: I see sym links for runlevels in 2 diff directories. Shouldn't it be just one?

I ran the same command and got the same results. So - the first directory just points to the second. What does that mean for the actual Start and Kill commands (sym links) in each? In other words, if the first directory just points to the second, are the Start/Kill symlinks in the first followed or ignored?

What happens if the symlinks in the first are different than the second?

Thanks
Reply With Quote
  #5  
Old 21st November 2012, 02:24 AM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,870
linuxfirefox
Re: I see sym links for runlevels in 2 diff directories. Shouldn't it be just one?

It depends on where the applications come from.

If they are from most System V variants (IRIX for instance) the directory was /etc/init.d. and /etc/rc<n>.d Some used /etc/rc.d, some used /etc/rc.d/rc(n).d (Slackware uses this).

Historically this goes back to before it was standardized, so places took a description and implemented it differently.

This was "unified" by making symbolic links to make all variations work/look (nearly) the same.

In all standard cases, the links/files in rc(n).d are the ones executed for the level - the order of startup was alphabetical, so S00 would always be done before S01. And the two digit nn was the default. It worked just as well with Saa starting after S99...
Reply With Quote
Reply

Tags
diff, directories, links, runlevels, sym

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
symbolic links to directories gurutech Using Fedora 3 2nd October 2011 06:54 PM
Runlevels JohnnyLinux Using Fedora 18 21st September 2009 08:10 PM
Assigning diff languages to diff users deacky_blue Using Fedora 2 17th February 2009 01:07 PM
Apache Can't See User Directories or Indexes in Sub Directories jeix Servers & Networking 7 15th June 2006 06:27 AM
What is runlevels? jo3 Using Fedora 1 6th June 2006 08:18 PM


Current GMT-time: 06:18 (Saturday, 01-11-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Qingquan - Papua New Guinea - San Jose Photos on Instagram