Tuesday, July 24, 2012

Centos, services you can most likely disable

SkyHi @ Tuesday, July 24, 2012

This article shows you the 8 services you can most likely disable and speed up your boot process.
If you installed Fedora 15 from the live CD you will end up with some system services enabled, which you most likely do not need _ever_.

These services are:
fcoe and lldpad, only needed, if you have fibre channel over ethernet devices
iscsi and iscsid, only needed, if you have iSCSI devices
livesys and livesys-late, only needed for the live CD
mdmonitor, only needed, if you have RAID devices




#!/bin/bash
#Dependencies services package
#Turning off un-needed services on a Mythtv box
#One network NIC, no NSF, Selinux=0, no RAID, no wireless...
# VERY MINIMAL!
 echo ""
 echo " ********************************* "
 echo " Turning un-needed things off"
 echo " ********************************* "

for s in atd \
        auditd \
        avahi-daemon \
        bluetooth \
        cgconfig \
        cgred \
        cups \
        dc_client \
        dc_server \
        dnsmasq \
        ebtables \
        firstboot \
        gpsd \
        haldaemon \
        ip6tables \
        irda \
        iscsi \
        iscsid \
        ksm \
        ksmtuned \
        libvirt-guests \
        libvirtd \
        lvm2-monitor \
        mdmonitor \
        NetworkManager \
        netconsole \
        netfs \
        nfs \
        nfslock \
        nmb \
        ntpd \
        ntpdate \
        openct \
        openvpn \
        pcscd \
        portreserve \
        psacct \
        rdisc \
        restorecond \
        rpcbind \
        rpcgssd \
        rpcidmapd \
        rpcsvcgssd \
        rsyslog \
        saslauthd \
        sendmail \
        smb \
        smolt \
        snmpd \
        speech-dispatcherd \
        snmptrapd \
        squid \
        svnserve \
        vboxdrv \
        vboxweb-service \
        wicd \
        wpa_supplicant \
        ypbind
do echo "chkconfig $s off";
chkconfig $s off;
done
 echo ""
 echo " ********************************* "
 echo " Turning minimal needed things on"
 echo " Httpd so webmin & mythweb work "

echo "********************************* "

for s in abrtd \
        httpd \
        network \
        mysqld \
        sshd \
        udev-post \
        xinetd
do echo "chkconfig $s on";
chkconfig $s on
done

 echo ""
 echo " ********************************* "
 echo " DONE...."
 echo " ********************************* "



REFERENCES
http://www.harald-hoyer.de/personal/blog/fedora-15-8-services-you-can-most-likely-disable