自分でコンパイル・インストールしたApacheなどを自動起動させるためにchkconfig --add するためには、/etc/init.d/ に配置した起動・停止スクリプトにchkconfig用のコメントを記述しておく必要がある。 記述しておかずに chkconfig --add した場合は下記のようなメッセージが出て怒られる。 service XXXX does not support chkconfig /etc/init.d/の起動・停止ファイルへ下記のようにコメントを追加する。 #!/bin/sh # chkconfig: 345 98 20 # description: Watch system status # processname: hotsanic # chkconfig: 345 98 20 最初の345は起動するランレベル。 次の98は起動時の優先順位。 最後の20
