网站建设资讯

NEWS

网站建设资讯

lab-bill-sys-killservers-davidey

#!/bin/sh

创新互联建站专注于镇平网站建设服务及定制,我们拥有丰富的企业做网站经验。 热诚为您提供镇平营销型网站建设,镇平网站制作、镇平网页设计、镇平网站官网定制、小程序设计服务,打造镇平网络公司原创品牌,更为您提供镇平网站排名全网营销落地服务。

services="bluetooth cups firstboot gpmhidd hplip ip6tables isdn pcscd xfs xinetd yum-updatesd messagebus abrtd

 

abrt-oops abrt-ccpp avahi-daemonrhsmcertd"

 

for service in $services

do

  if[ -f "/etc/init.d/$service" ]

   then

   if [ $service == 'xinetd' ]

     then

     grep -r disable /etc/xinetd.*  |sed 's/.*://' | grep -v ^#  | sed  's/\s//g' | grep -q -v "disable=yes"

     if [ $? == 0 ]

       then

       echo "xinetd in Using."

     else

       /etc/init.d/xinetd stop && echo "xinetd stop success."

       chkconfig xinetd off && echo "xinetd stop on powered upsuccess." || echo "xinetd stop on powered up

 

failed."

     fi

   else

     /etc/init.d/$service stop && echo "$service stopsuccess."

     chkconfig $service off && echo "$service stop on powered upsuccess." || echo "$service stop on powered up

 

failed."

   fi

 else

   echo "$service not existed."

  fi

done

 

很晚完成该文档,尽管每一天工作强度很大,还是愿意与大家一起进步。呵呵每天进步一点。

 

后续介绍其他模块,有什么问题敬请大家不要吝啬指出,一同改进。欢迎大家和大家的技术发烧友一起加入我们的qq群262407268,共建我们的《云络智慧城市》


文章标题:lab-bill-sys-killservers-davidey
分享URL:http://cdweb.net/article/ggpjij.html