LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-25-2003, 02:38 AM   #1
davee
Member
 
Registered: Oct 2002
Location: Ayrshire, Scotland
Distribution: Suse(home) RHEL (Work)
Posts: 263

Rep: Reputation: 30
rc5.d directory listing...


OK so I've had a first look at my rc5.d directory, and it contains the following files:

K05saslauthd
S05kudzu
S14nfslock
S28autofs
S85gpm
S97rhnsd
K20nfs
S08iptables
S17keytable
S55sshd
S90crond
S98wine
K24irda
S09isdn
S20random
S56rawdevices
S90cups
S99local
K35vncserver
S10network
S24pcmcia
S56xinetd
S90xfs
K74ntpd
S12syslog
S25netfs
S60vsftpd
S95anacron
K95firstboot
S13portmap
S26apmd
S80sendmail
S95atd

From running ls-l I can see these are links to script files for initialising various services; but why the 'S80', 'K95' etc? What do they mean?
 
Old 06-25-2003, 04:00 AM   #2
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
K means, in this particular case for run level five, if the service is running kill it and and S the opposite start it. The numbers are the priority/order in which they are run.

You've a few turned on you could probably turn off.
 
Old 06-25-2003, 05:58 AM   #3
davee
Member
 
Registered: Oct 2002
Location: Ayrshire, Scotland
Distribution: Suse(home) RHEL (Work)
Posts: 263

Original Poster
Rep: Reputation: 30
Thanks for that... presumably when the system starts, there is nothing for the 'K' entries to do?
 
Old 06-25-2003, 07:07 AM   #4
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
From my understanding they are still processed but yeah, if it's from start up they'll exit without killing anything.
 
Old 06-25-2003, 08:29 AM   #5
davee
Member
 
Registered: Oct 2002
Location: Ayrshire, Scotland
Distribution: Suse(home) RHEL (Work)
Posts: 263

Original Poster
Rep: Reputation: 30
Cheers...

Hope the weather is as nice where you are as it is in Ayrshire today!
 
Old 06-25-2003, 08:55 AM   #6
lhiggins
Member
 
Registered: Jan 2003
Location: Sydney, Australia
Distribution: FedoraCore
Posts: 105

Rep: Reputation: 15
Ok cool so the rc.d directory sets what services start at runlevel 5. The K before the service kills the service whilst the s means to start a service.

So I can rename each service like K35vncserver to S35vncserver to start the service on runlevel 5? For Red Hat 9.

Sweet! Learned something I wanted to then. Thanks.

Last edited by lhiggins; 06-25-2003 at 08:57 AM.
 
Old 06-25-2003, 09:12 AM   #7
davee
Member
 
Registered: Oct 2002
Location: Ayrshire, Scotland
Distribution: Suse(home) RHEL (Work)
Posts: 263

Original Poster
Rep: Reputation: 30
Remember also that these are just links to the real scripts - e.g:

S99local is merely a link to /etc/rc.local

Dave
 
Old 06-25-2003, 09:19 AM   #8
lhiggins
Member
 
Registered: Jan 2003
Location: Sydney, Australia
Distribution: FedoraCore
Posts: 105

Rep: Reputation: 15
Cool. Thanks mate. I will have a play.
 
Old 06-25-2003, 09:54 AM   #9
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
I wouldn't recommend changing them by hand - use the chkconfig command to do it for you and keep it all straight or use the services panel in gnome or KDE equivalent if thats what your using.

Quote:
Hope the weather is as nice where you are as it is in Ayrshire today!


Yup the sun has shown up here for the day, probably just a fleeting visit as usual - so back to the garden....
 
Old 06-26-2003, 04:29 AM   #10
lhiggins
Member
 
Registered: Jan 2003
Location: Sydney, Australia
Distribution: FedoraCore
Posts: 105

Rep: Reputation: 15
Cool. I would rather like to know everything from the command line instead of using a GUI. I would like a strong knowledge of Linux/Unix for future career opportunities so I want to use everything from the command prompt.

Thanks for the info. I will have a play and see what I can do!
 
  


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
Apache Directory Listing Of NFS Mount, cannot view directory list via apache luqmana Linux - Networking 2 12-19-2005 07:03 AM
apache directory listing doralsoral Linux - Software 2 06-15-2005 08:37 AM
listing files in a directory Linh Programming 7 05-17-2004 05:35 AM
Directory Listing mattbeekler Linux - Software 8 07-22-2003 03:27 PM
Java Directory Listing markdw Programming 1 04-16-2002 07:06 PM


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