#!/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,共建我们的《云络智慧城市》
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。