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? |
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. |
Thanks for that... presumably when the system starts, there is nothing for the 'K' entries to do?
|
From my understanding they are still processed but yeah, if it's from start up they'll exit without killing anything.
|
Cheers...
Hope the weather is as nice where you are as it is in Ayrshire today! |
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. |
Remember also that these are just links to the real scripts - e.g:
S99local is merely a link to /etc/rc.local Dave |
Cool. Thanks mate. I will have a play.
|
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:
Yup the sun has shown up here for the day, probably just a fleeting visit as usual - so back to the garden.... :) |
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. |