zetabill |
12-16-2006 12:36 AM |
Have you looked in rc.M as well? A lot of it is the execution of the other rc scripts in /etc/rc.d if they're executable. I always chmod -x the scripts that start services I'm never going to use. I always end up chmod -x to some of them... I only have That might help you a little bit and it's a lot easier and safer than removing the calls from rc.M because nothing will get done if you've chmod -x. Here is my /etc/rc.d but keep in mind that I have a laptop with PCMCIA:
Code:
bill@yogi:~$ ls -la /etc/rc.d
total 276
drwxr-xr-x 2 root root 4096 2006-11-12 19:02 ./
drwxr-xr-x 54 root root 4096 2006-12-15 17:16 ../
lrwxrwxrwx 1 root root 4 2006-10-04 14:55 rc.0 -> rc.6*
-rwxr-xr-x 1 root root 1160 2006-09-25 04:33 rc.4*
-rwxr-xr-x 1 root root 6782 2006-09-25 04:33 rc.6*
-rwxr-xr-x 1 root root 2322 2006-09-25 04:33 rc.K*
-rwxr-xr-x 1 root root 10026 2006-10-07 00:29 rc.M*
-rwxr-xr-x 1 root root 14408 2006-09-25 04:33 rc.S*
-rwxr-xr-x 1 root root 466 2004-11-05 03:20 rc.acpid*
-rwxr-xr-x 1 root root 1614 2006-08-04 22:50 rc.alsa*
-rw-r--r-- 1 root root 1032 2003-02-01 22:47 rc.atalk
-rw-r--r-- 1 root root 4178 2006-05-03 19:31 rc.bind
-rwxr-xr-x 1 root root 3942 2006-08-17 01:19 rc.cups*
-rw-r--r-- 1 root root 512 2006-08-08 00:02 rc.dnsmasq
-rw-r--r-- 1 root root 119 2004-05-30 00:19 rc.font
-rwxr-xr-x 1 root root 1148 2006-10-04 15:21 rc.gpm*
-rwxr-xr-x 1 root root 2243 2006-09-20 19:50 rc.hotplug*
-rw-r--r-- 1 root root 401 2003-03-05 16:28 rc.httpd
-rwxr-xr-x 1 root root 8325 2006-09-20 22:48 rc.inet1*
-rw-r--r-- 1 root root 3540 2006-10-04 15:22 rc.inet1.conf
-rwxr-xr-x 1 root root 4477 2006-09-20 22:44 rc.inet2*
-rwxr-xr-x 1 root root 497 2003-09-11 23:27 rc.inetd*
-rw-r--r-- 1 root root 1924 2003-09-13 19:10 rc.ip_forward
-rwxr-xr-x 1 root root 272 2006-09-25 04:33 rc.local*
-rw-r--r-- 1 root root 25553 2006-09-01 04:31 rc.modules-2.4.33.3*
-rw-r--r-- 1 root root 28472 2006-10-16 12:28 rc.modules-2.6.17.13*
-rwxr-xr-x 1 root root 2019 2006-10-16 12:34 rc.modules.local*
-rw-r--r-- 1 root root 2300 2006-09-01 22:15 rc.mysqld
-rw-r--r-- 1 root root 2444 2006-09-20 23:05 rc.nfsd
-rwxr-xr-x 1 root root 5090 2006-08-16 16:48 rc.pcmcia*
-rw-r--r-- 1 root root 2000 2006-09-21 18:07 rc.rpc
-rw-r--r-- 1 root root 791 2006-09-02 02:14 rc.samba
-rw-r--r-- 1 root root 1169 2006-05-27 16:24 rc.saslauthd
-rw-r--r-- 1 root root 967 2006-09-25 04:33 rc.scanluns
-rw-r--r-- 1 root root 687 2002-06-04 17:09 rc.sendmail
-rw-r--r-- 1 root root 2895 2006-09-25 04:47 rc.serial
-rw-r--r-- 1 root root 1222 2006-09-28 17:17 rc.sshd
-rwxr-xr-x 1 root root 860 2004-05-02 18:07 rc.syslog*
-rwxr-xr-x 1 root root 1740 2006-09-25 04:33 rc.sysvinit*
-rwxr-xr-x 1 root root 4711 2006-09-13 20:11 rc.udev*
-rw-r--r-- 1 root root 9453 2006-08-16 16:20 rc.wireless*
-rw------- 1 root root 7320 2006-08-16 16:20 rc.wireless.conf
-rw-r--r-- 1 root root 2323 2005-07-31 19:56 rc.yp
I'm not saying to match your rc.d with mine. I don't use apache or mysql and I have custom wireless scripts and a custom kernel. Do a little digging to see what each of those services does and whether or not you want to go without something. Best part is if you mess up all you have to do is chmod +x to get your service back (and call it: /etc/rc.d/rc.service restart).
Two things I always comment out of rc.M are the calls for fc-cache and ldconfig. You only need ldconfig when the software on the computer changes. Unless you're constantly playing with software it's not something that is necessary at every boot. fc-cache simply indexes the fonts that you have "installed" in folders that system expects there to be fonts. Unless you're adding and removing fonts every session then it's probably something you don't need to run at startup all the time. That should save some time off startup, especially ldconfig.
That being said, however, I would get into the habit of running ldconfig && fc-cache whenever you play with software and fc-cache if you add or remove fonts.
EDIT: Compiling a custom kernel might get you an extra few seconds off your boot. When I'm waiting to enter my login password, I can get up to a KDE desktop ready to work in under 50 seconds from turning it on... and KDE is slower to load than the rest...
Good luck.
|