/etc/inittab

最後更新: 2024-03-11

介紹

file used by the sysv-compatible init process

目錄

 


inittab Format

/etc/inittab

id:runlevels:action:process

id

a unique sequence of 1-4 characters which identifies an entry in inittab

runlevel

  • 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)

action

  • respawn
  • wait
  • once
  • boot
  • bootwait
  • off
  • ondemand
  • initdefault
  • sysinit
  • powerwait
  • powerfail
  • powerokwait
  • powerfailnow
  • ctrlaltdel
  • kbrequest

initdefault

the runlevel which should be entered after system boot
(e.g. "id:3:initdefault:")

sysinit

The process will be executed during system boot
(executed before any boot or  bootwait entries)
(e.g. /etc/rc.d/rc.sysinit)

respawn

The process will be restarted whenever it terminates
(e.g. getty)

process

specifies  the  process to be executed.

 


 

 

 

Creative Commons license icon Creative Commons license icon