rc.local 파일이 자동 실행 되지 않습니다.
작성자 정보
- 김광현 작성
- 작성일
컨텐츠 정보
- 2,102 조회
- 0 추천
- 목록
본문
-rwxr-xr-x 1 root root 384 5월 11 07:56 rc.local
퍼미션은 위와 같으며 내용은 다음과 같습니다.
========================================================
[root@centos rc.d]# vi /etc/rc.d/rc.local
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
uptime > /tmp/uptime1.log
touch /var/lock/subsys/local
ethtool -s eth0 wol g
/usr/local/server/apache/bin/apachectl start
/usr/local/server/proftpd/sbin/proftpd
uptime > /tmp/uptime2.log
========================================================
테스트로 명령을 넣어봤는데 생성되지 않는걸 보니 rc.local이 실행 되지 않는 것 같습니다.
[root@centos rc3.d]# ll
lrwxrwxrwx 1 root root 11 5월 4 20:03 S99local -> ../rc.local
위와같이 /etc/rc.d/rc3.d/ 에서 링크도 문제가 없어보이구요
proftpd, apache 를 setup 에서 체크 해도 부팅시 실행이 되질 않고..
어느쪽을 살펴봐야 하는지 조언 부탁드립니다 ~
관련자료
-
이전
-
다음