記述しておかずに 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は停止時の優先順位。
descriptionとprocessnameはお好きに。
# chkconfig --add [サービスファイル名]
とやると追加されます。
# chkconfig --list | grep [サービスファイル名]
と打ち込んで、実際に追加されたか確認する。