2013-05-15 5 views
1

나는 다음과 같은 경고가 표시-rc.d를 업데이트하는 스크립트를 추가 할 때 내 데비안 7아파치있는 init.d 스크립트

#!/bin/sh 
### BEGIN INIT INFO 
# Provides:   apache2 
# Required-Start: $all 
# Required-Stop:  $all 
# Default-Start:  2 3 4 5 
# Default-Stop:  0 1 6 
# Short-Description: apache2 
# Description: Start apache2 
### END INIT INFO 

case "$1" in 
start) 
     echo "Starting Apache ..." 
     # Change the location to your specific location 
     /usr/local/apache2/bin/apachectl start 
;; 
stop) 
     echo "Stopping Apache ..." 
     # Change the location to your specific location 
     /usr/local/apache2/bin/apachectl stop 
;; 
graceful) 
     echo "Restarting Apache gracefully..." 
     # Change the location to your specific location 
     /usr/local/apache2/bin/apachectl graceful 
;; 
restart) 
     echo "Restarting Apache ..." 
     # Change the location to your specific location 
     /usr/local/apache2/bin/apachectl restart 
;; 
*) 
     echo "Usage: '$0' {start|stop|restart|graceful}" 
     exit 64 
;; 
esac 
exit 0 

을에서 시작, 중지하려면 다음 스크립트를 다시 시작 아파치가 :

[email protected]:/etc/init.d# update-rc.d apache2 defaults 
update-rc.d: using dependency based boot sequencing 
insserv: Script jexec is broken: incomplete LSB comment. 
insserv: missing `Required-Stop:' entry: please add even if empty. 
insserv: missing `Default-Stop:' entry: please add even if empty. 
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `jexec' 

하지만 이미 스크립트에 Required-Stop 및 Default-Stop을 추가했습니다.

아무도이 문제를 해결하는 방법을 알고 있습니까?

답변

0

문제는 apache2 초기화 스크립트에 없습니다. 'jexec'에 'Script jexec is broken'이라고 표시됩니다.

하나는 필수-중지 없음을

내 SLES 회양목에 동일한 문제가 있었다 기본을-중지합니다. 걱정하지 마십시오. 오류가 표시 되더라도 모든 것이 제대로 실행됩니다.

HTH