E
emekadavid
Guest
I read from tldp pages on system administration that init starts with a specific run level. My /etc/inittab states that it starts with 5, X11. I then asked less to give me a view of the directory file for runlevel 5 i.e less /etc/rc.d/rc5.d. My question is: I know that if a file starts with K that means it is killed when init starts at that runlevel and when it starts with S the service is started. What puzzles me from the output of rc5.d is that, why should services like networking, apache server, dns server and wifi access client be killed when init starts at runlevel 5? can anyone give me a reason for that? It can help me understand the system better. thanks
Output of that directory follows. first 30 lines,
Output of that directory follows. first 30 lines,
Code:
less /etc/rc.d/rc5.d | head -n 30
total 8
drwxr-xr-x. 2 root root 4096 Jul 27 16:09 ./
drwxr-xr-x. 10 root root 4096 May 4 2011 ../
lrwxrwxrwx. 1 root root 16 May 4 2011 K10psacct -> ../init.d/psacct*
lrwxrwxrwx. 1 root root 19 May 4 2011 K10saslauthd -> ../init.d/saslauthd*
lrwxrwxrwx. 1 root root 15 May 4 2011 K15httpd -> ../init.d/httpd*
lrwxrwxrwx. 1 root root 14 May 4 2011 K25sshd -> ../init.d/sshd*
lrwxrwxrwx. 1 root root 17 May 4 2011 K50dnsmasq -> ../init.d/dnsmasq*
lrwxrwxrwx. 1 root root 20 May 4 2011 K50netconsole -> ../init.d/netconsole*
lrwxrwxrwx. 1 root root 17 May 4 2011 K75ntpdate -> ../init.d/ntpdate*
lrwxrwxrwx. 1 root root 14 May 4 2011 K80fcoe -> ../init.d/fcoe*
lrwxrwxrwx. 1 root root 16 May 4 2011 K80lldpad -> ../init.d/lldpad*
lrwxrwxrwx 1 root root 14 Jul 6 07:52 K80sssd -> ../init.d/sssd*
lrwxrwxrwx 1 root root 24 Jul 27 15:00 K84wpa_supplicant -> ../init.d/wpa_supplicant*
lrwxrwxrwx. 1 root root 15 May 4 2011 K86cgred -> ../init.d/cgred*
lrwxrwxrwx. 1 root root 20 May 4 2011 K87multipathd -> ../init.d/multipathd*
lrwxrwxrwx. 1 root root 21 May 4 2011 K87restorecond -> ../init.d/restorecond*
lrwxrwxrwx. 1 root root 15 May 4 2011 K89rdisc -> ../init.d/rdisc*
lrwxrwxrwx. 1 root root 17 May 4 2011 K90network -> ../init.d/network*
lrwxrwxrwx. 1 root root 18 May 4 2011 K95cgconfig -> ../init.d/cgconfig*
lrwxrwxrwx 1 root root 19 Jul 6 07:57 K95firstboot -> ../init.d/firstboot*
lrwxrwxrwx. 1 root root 17 May 4 2011 S00livesys -> ../init.d/livesys*
lrwxrwxrwx. 1 root root 22 May 4 2011 S02lvm2-monitor -> ../init.d/lvm2-monitor*
lrwxrwxrwx. 1 root root 16 May 4 2011 S07iscsid -> ../init.d/iscsid*
lrwxrwxrwx. 1 root root 19 May 4 2011 S08ip6tables -> ../init.d/ip6tables*
lrwxrwxrwx. 1 root root 18 May 4 2011 S08iptables -> ../init.d/iptables*
lrwxrwxrwx 1 root root 16 Jul 27 16:09 S11auditd -> ../init.d/auditd*
lrwxrwxrwx. 1 root root 21 May 4 2011 S11portreserve -> ../init.d/portreserve*
lrwxrwxrwx. 1 root root 17 May 4 2011 S12rsyslog -> ../init.d/rsyslog*
lrwxrwxrwx. 1 root root 18 May 4 2011 S13cpuspeed -> ../init.d/cpuspeed*