inittab 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # /etc/inittab: init(8) configuration.
  2. # $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $
  3. # The default runlevel.
  4. id:2:initdefault:
  5. # Boot-time system configuration/initialization script.
  6. # This is run first except when booting in emergency (-b) mode.
  7. si::sysinit:/etc/init.d/rcS
  8. # What to do in single-user mode.
  9. ~~:S:wait:/sbin/sulogin
  10. # /etc/init.d executes the S and K scripts upon change
  11. # of runlevel.
  12. #
  13. # Runlevel 0 is halt.
  14. # Runlevel 1 is single-user.
  15. # Runlevels 2-5 are multi-user.
  16. # Runlevel 6 is reboot.
  17. l0:0:wait:/etc/init.d/rc 0
  18. l1:1:wait:/etc/init.d/rc 1
  19. l2:2:wait:/etc/init.d/rc 2
  20. l3:3:wait:/etc/init.d/rc 3
  21. l4:4:wait:/etc/init.d/rc 4
  22. l5:5:wait:/etc/init.d/rc 5
  23. l6:6:wait:/etc/init.d/rc 6
  24. # Normally not reached, but fallthrough in case of emergency.
  25. z6:6:respawn:/sbin/sulogin
  26. # What to do when CTRL-ALT-DEL is pressed.
  27. ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
  28. # Action on special keypress (ALT-UpArrow).
  29. #kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this work."
  30. # What to do when the power fails/returns.
  31. pf::powerwait:/etc/init.d/powerfail start
  32. pn::powerfailnow:/etc/init.d/powerfail now
  33. po::powerokwait:/etc/init.d/powerfail stop
  34. # /sbin/getty invocations for the runlevels.
  35. #
  36. # The "id" field MUST be the same as the last
  37. # characters of the device (after "tty").
  38. #
  39. # Format:
  40. # <id>:<runlevels>:<action>:<process>
  41. #
  42. # Note that on most Debian systems tty7 is used by the X Window System,
  43. # so if you want to add more getty's go ahead but skip tty7 if you run X.
  44. #
  45. 1:2345:respawn:/sbin/getty 38400 tty1
  46. 2:23:respawn:/sbin/getty 38400 tty2
  47. 3:23:respawn:/sbin/getty 38400 tty3
  48. 4:23:respawn:/sbin/getty 38400 tty4
  49. 5:23:respawn:/sbin/getty 38400 tty5
  50. 6:23:respawn:/sbin/getty 38400 tty6
  51. # Example how to put a getty on a serial line (for a terminal)
  52. #
  53. #T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
  54. #T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100
  55. # Example how to put a getty on a modem line.
  56. #
  57. #T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3
  58. # virtio console
  59. V0:12345:respawn:/sbin/getty 38400 hvc0