[root@cent64 tmp]# cat /etc/inittab # inittab is only used by upstart for the default runlevel. # # ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM. # # System initialization is started by /etc/init/rcS.conf # # Individual runlevels are started by /etc/init/rc.conf # # Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf # # Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf, # with configuration in /etc/sysconfig/init. # # For information on how to write upstart event handlers, or how # upstart works, see init(5), init(8), and initctl(8). # # Default runlevel. The runlevels used are: # 0 - halt (Do NOT set initdefault to this) # 1 - Single user mode # 2 - Multiuser, without NFS (The same as 3, if you do not have networking) # 3 - Full multiuser mode # 4 - unused # 5 - X11 # 6 - reboot (Do NOT set initdefault to this) # id:3:initdefault: [root@cent64 tmp]# ls /etc/init control-alt-delete.conf rc.conf readahead.conf init-system-dbus.conf rcS-emergency.conf serial.conf kexec-disable.conf rcS-sulogin.conf splash-manager.conf plymouth-shutdown.conf rcS.conf start-ttys.conf prefdm.conf readahead-collector.conf tty.conf quit-plymouth.conf readahead-disable-services.conf
テキスト(p.22)にある各エントリは以下のような対応になります。
エントリ内容 | 意味 | ファイル名 |
---|---|---|
id:initdefault | デフォルトのランレベル | /etc/inittab |
si::sysinit:/etc/rc.dd/rc.sysinit | システム初期化の実行 | /etc/init/rcS.conf |
l0:0:wait:/etc/rc.d/rc 0 | ランレベルごとの起動スクリプト処理 | /etc/init/rc.conf |
ca::ctrlaltdel:/sbin/shutdown -t3 -r now | キーボード割込み[Ctrl]+[Alt]+[Del] | /etc/init/control-alt-delete.conf |
pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure" |
電源異常感知 | power-status-change |
pr:12345:powerokwait:/sbin/shutddown -c "Power Restored" |
電源復帰感知 | power-status-change |
1:2345:respawn:/sbin/mingetty tty1 | 仮想コンソールの起動 | /etc/init/tty.conf /etc/init/serial.conf /etc/sysconfig/init |
x:5:respawn:/etc/X11/prefdm -nodaemon | X コンソール起動 |