Apache 自動起動スクリプト@Linux [Apache]
今まで知らなかったけどapachectlにちょっと手を加えればchkconfig対応の自動起動スクリプトになるらしい。
<apachectlをchkconfig対応する為の変更箇所>
# When multiple arguments are given, only the error from the _last_
# one is reported. Run "apachectl help" for usage info
#
ARGV="$@"
# chkconfig: - 90 15 *追加
# description:httpd *追加
#
# |||||||||||||||||||| START CONFIGURATION SECTION ||||||||||||||||||||
# -------------------- --------------------
変更したら以下でOK
# cp /usr/local/apache2/apachectl /etc/rc.d/init.d/httpd
# chkconfig --add httpd
コメント 0