FC2/FC1: decreasing boot up time by delaying services
Hi
Windows & Mac often appear to be fast to boot up mainly because they often delay the starting of various services until after the user interface has started.
I wanted to use the same idea for starting Fedora faster.
So I disabled many of the services that are not required to start X and I started them seperately later in rc.local
I am sure there are other people here in the forum have implemented the same idea.
I have shown below how I have implemented this. If any of you have a better way of doing this, I would love to hear from you guys. If there are more services that can be delayed, I would love to hear about that too.
Here is my /etc/rc.local file
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
nice /etc/startservices &
Here is my /etc/startservices file
/sbin/service network start > /tmp/startservice.log
/sbin/modprobe yenta_socket
/sbin/service pcmcia restart
/sbin/ifdown eth1
/sbin/ifup eth1 >& /tmp/eth1.log &
/sbin/service gpm start >> /tmp/startservice.log
/sbin/service sshd start >> /tmp/startservice.log
/sbin/service ntpd start >> /tmp/startservice.log
/sbin/service iptables start >> /tmp/startservice.log
/sbin/service portmap start >> /tmp/startservice.log
/usr/sbin/tmpwatch 100 /tmp >> /tmp/startservice.log
echo 1 > /proc/sys/vm/laptop_mode
hdparm -S 120 /dev/hdc >> /tmp/startservice.log
/sbin/service atd start >> /tmp/startservice.log
/sbin/service rhnsd start >> /tmp/startservice.log
/sbin/service cpuspeed start >> /tmp/startservice.log
/sbin/service random start >> /tmp/startservice.log
Any comments would be appreciated
-Anand
|