您好,登錄后才能下訂單哦!
#!/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進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。