오늘은 대한입니다.
sun's longitude:299 49 4.10 
· 자유게시판 · 묻고답하기 · 알파문서 · RPMS list
· 사용자문서 · 팁/FAQ모음 · 리눅스Links · 자료실
· 서버정보 · 운영자 · Books/FAQ · FreeBSD
/board/delete.php:소스보기  
알파문서
자주 잊어먹거나, 메모해 둘 필요성이 있는 팁이나 문서, 기타 등등
[*** 쓰기 금지단어 패턴 ***]
글 본문 중간에 업로드할 이미지를 추가하는 방법 : @@이미지이름@@
ex) @@foo.gif@@
 ★ 글 지우기 항목입니다. 한번 더 생각하시고 결정하십시오.!!!
제목 289 번 글의 답장글 : [linux] CentOS 5.x init.d 불필요한 서비스데몬
 이름  산이 [홈]http://linuxchannel.net/
CentOS 5.x init.d 불필요한 서비스데몬 off

# runlevel
chkconfig --del NetworkManager
chkconfig --del NetworkManagerDispatcher
chkconfig --del acpid
chkconfig --del auditd
chkconfig --del autofs
chkconfig --del bluetooth
chkconfig --del cpuspeed
chkconfig --del cups
chkconfig --del dhcdbd
chkconfig --del diskdump
chkconfig --del firstboot
chkconfig --del gpm
chkconfig --del haldaemon
chkconfig --del hidd
chkconfig --del hplip
chkconfig --del ip6tables
chkconfig --del irda
chkconfig --del kudzu
chkconfig --del mdmpd
chkconfig --del messagebus
chkconfig --del netdump
chkconfig --del netfs
chkconfig --del netplugd
chkconfig --del nfs
chkconfig --del nfslock
chkconfig --del nscd
chkconfig --del pcmcia
chkconfig --del portmap
chkconfig --del psacct
chkconfig --del rdisc
chkconfig --del readahead_later
chkconfig --del readahead_early
chkconfig --del rhnsd
chkconfig --del rpcgssd
chkconfig --del rpcidmapd
chkconfig --del rpcsvcgssd
chkconfig --del saslauthd
chkconfig --del sysstat
chkconfig --del wpa_supplicant
chkconfig --del xfs
chkconfig --del ypbind
chkconfig --del yum-cron
chkconfig --del yum-updatesd

------------------------
#!/bin/sh
##
## -- CentOS 5.x init.d
## -- san2@2010.04.28

FORCEOFF="NetworkManager NetworkManagerDispatcher acpid auditd autofs bluetooth
cpuspeed cups dhcdbd diskdump gpm haldaemon hidd hplip ip6tables irda kudzu mdmpd
messagebus netdump netfs netplugd nfs nfslock nscd pcmcia portmap psacct
rdisc readahead_early readahead_later rhnsd rpcgssd rpcidmapd rpcsvcgssd
saslauthd sysstat wpa_supplicant xfs ypbind yum-cron yum-updatesd"

FORCEON="crond syslog"

for SERVICE in ${FORCEOFF} ; do
echo -n "$SERVICE force to off: "
[ -x /etc/rc.d/init.d/${SERVICE} ] || { echo 'skip'; continue; }
/sbin/chkconfig ${SERVICE} off && echo 'off' || echo 'fail'
/etc/rc.d/init.d/${SERVICE} status | grep running >/dev/null && \
/etc/rc.d/init.d/${SERVICE} stop
done

for SERVICE in ${FORCEON} ; do
echo -n "$SERVICE force to on: "
[ -x /etc/rc.d/init.d/${SERVICE} ] || { echo 'skip'; continue; }
/sbin/chkconfig ${SERVICE} on && echo 'on' || echo 'fail'
/etc/rc.d/init.d/${SERVICE} status | grep stop >/dev/null && \
/etc/rc.d/init.d/${SERVICE} start
done

exit $?
---------------------------------
2010년 04월 29일 17:18:34 목(오후)  from 114.111.62.248
0
암호: 공용 보안 SSL 서버가 준비되기 전까지는 off 합니다

apache lighttpd linuxchannel.net 
Copyright 1997-2026. linuxchannel.net. All rights reserved.

Page loading: 0.01(server) + (network) + (browser) seconds