#!/bin/bash
# www.jb200.com
for ser in `chkconfig --list |grep 3:on |
awk '{print $1}'`
do
echo $ser
case $ser in (crond | irqbalance | microcode_ctl | network | random |
sendmail
| sshd | syslog | messagebus | haldaemon | readahead_early
| apmd | readahead_later | readahead |
iptables
|
LVM2-monitor|xinetd | auditd | cpuspeed )
echo "Base services, Skip"
;;
*)
echo "change $ser to off"
chkconfig --level 3 $ser off
service $ser stop
;;
esac
done