LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   rc5.d directory listing... (https://www.linuxquestions.org/questions/linux-newbie-8/rc5-d-directory-listing-67880/)

davee 06-25-2003 01:38 AM

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?

Looking_Lost 06-25-2003 03:00 AM

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.

davee 06-25-2003 04:58 AM

Thanks for that... presumably when the system starts, there is nothing for the 'K' entries to do?

Looking_Lost 06-25-2003 06:07 AM

From my understanding they are still processed but yeah, if it's from start up they'll exit without killing anything.

davee 06-25-2003 07:29 AM

Cheers...

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

lhiggins 06-25-2003 07:55 AM

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.

davee 06-25-2003 08:12 AM

Remember also that these are just links to the real scripts - e.g:

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

Dave

lhiggins 06-25-2003 08:19 AM

Cool. Thanks mate. I will have a play.

Looking_Lost 06-25-2003 08:54 AM

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.... :)

lhiggins 06-26-2003 03:29 AM

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!


All times are GMT -5. The time now is 06:42 PM.