Chinaunix首页 | 论坛 | 博客
  • 博客访问: 227469
  • 博文数量: 30
  • 博客积分: 1617
  • 博客等级: 上尉
  • 技术积分: 317
  • 用 户 组: 普通用户
  • 注册时间: 2008-02-02 10:32
文章分类

全部博文(30)

文章存档

2019年(1)

2016年(1)

2014年(1)

2012年(3)

2011年(4)

2010年(8)

2009年(5)

2008年(7)

我的朋友

分类: LINUX

2009-11-18 11:26:53

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
阅读(965) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~