chkconfig --list

[root@ant/root]# chkconfig --list
NetworkManager                  0:해제  1:해제  2:해제  3:해제  4:해제  5:해제  6:해제
NetworkManagerDispatcher   0:해제  1:해제  2:해제  3:해제  4:해제  5:해제  6:해제
acpid                                  0:해제  1:해제  2:해제  3:활성  4:활성  5:해제  6:해제
anacron                              0:해제  1:해제  2:활성  3:활성  4:활성  5:해제  6:해제
apmd                                  0:해제  1:해제  2:활성  3:활성  4:활성  5:해제  6:해제
atd                                     0:해제  1:해제  2:해제  3:활성  4:활성  5:해제  6:해제
autofs                                 0:해제  1:해제  2:해제  3:활성  4:활성  5:활성  6:해제
........
중간생략
........
xinetd 기반의 서비스:
       chargen:           해제
       chargen-udp:    해제
       cvs:                 해제
       daytime:            해제
       daytime-udp:     해제
       ntalk:                활성



chkconfig --add mysqld

/etc/init.d/mysqld 라는 파일을 넣어두고

위의 명령어를 치면 ntsysv 에서 체크 가능하도록 목록에 추가됩니다.

단, mysqld 라는 파일 내용에

# chkconfig: 2345 64 36
# description: A very fast and reliable SQL database engine.

라는 내용이 추가 되어 있어야 됩니다.

2345 는 실행 레벨을 의미하며
64 는 S64 즉 실행 순서를 말하고
36 은 K36 즉 종료 순서를 말합니다.


chkconfig --del mysqld

삭제 하는 명령어 입니다. ^^ ㅋㅋ


chkconfig --level ? ( on / off )

한번에 설명 들어갑니다. 보면 아마 이해가 되실 듯 ㅋㅋ

[root@ant/etc]# chkconfig --list | grep xfs
xfs             0:해제  1:해제  2:활성  3:활성  4:활성  5:활성  6:해제
[root@ant/etc]# chkconfig --level 3 xfs off
[root@ant/etc]# chkconfig --list | grep xfs
xfs             0:해제  1:해제  2:활성  3:해제  4:활성  5:활성  6:해제
[root@ant/etc]# chkconfig --level 3 xfs on
[root@ant/etc]# chkconfig --list | grep xfs
xfs             0:해제  1:해제  2:활성  3:활성  4:활성  5:활성  6:해제

'Linux' 카테고리의 다른 글

iptables  (0) 2009.06.14
at cron  (0) 2009.06.14
Xinetd (eXtended inetd)  (0) 2009.06.11
디스크 쿼터(quota)  (0) 2009.06.11
VI 기본설정  (0) 2009.06.11

+ Recent posts