#amazon(1330410945)
ファイル構成 †
/etc/init.d †
/etc/rc †
/etc/rc.local †
/etc/rc.sysinit †
/etc/rcn.d †
- 各ランレベルごとに実行されるスクリプト
- Snnxxxxx は start 引数で、Knnxxxxx は stop 引数で実行される
- 中身は /etc/init.d へのシンボリック リンク
/etc/rc.d †
起動スクリプトの管理 †
- /etc/rcn.d 配下のファイルはツールで管理する
確認 †
[root@host ~]# chkconfig --list [script-name]
NetworkManager 0:off 1:off 2:off 3:off 4:off 5:off 6:off
acpid 0:off 1:off 2:on 3:on 4:on 5:on 6:off
anacron 0:off 1:off 2:on 3:on 4:on 5:on 6:off
snip
追加・削除 †
[root@host ~]# chkconfig --{add|del} 'script-name
変更 †
[root@host ~]# chkconfig [--level run-level] script-name {on|off|reset}