Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
403
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. $ cat /etc/inittab
  2. #
  3. # inittab This file describes how the INIT process should set up
  4. # the system in a certain run-level.
  5. #
  6. # Author: Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
  7. # Modified for RHS Linux by Marc Ewing and Donnie Barnes
  8. #
  9.  
  10. # Default runlevel. The runlevels used by Mandriva Linux are:
  11. # 0 - halt (Do NOT set initdefault to this)
  12. # 1 - Single user mode
  13. # 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
  14. # 3 - Full multiuser mode
  15. # 4 - unused
  16. # 5 - X11
  17. # 6 - reboot (Do NOT set initdefault to this)
  18. #
  19. id:5:initdefault:
  20.  
  21. # System initialization.
  22. si::sysinit:/etc/rc.d/rc.sysinit
  23.  
  24. l0:0:wait:/etc/rc.d/rc 0
  25. l1:1:wait:/etc/rc.d/rc 1
  26. l2:2:wait:/etc/rc.d/rc 2
  27. l3:3:wait:/etc/rc.d/rc 3
  28. l4:4:wait:/etc/rc.d/rc 4
  29. l5:5:wait:/etc/rc.d/rc 5
  30. l6:6:wait:/etc/rc.d/rc 6
  31.  
  32. # Trap CTRL-ALT-DELETE
  33. ca::ctrlaltdel:/sbin/shutdown -t3 -r now
  34.  
  35. # When our UPS tells us power has failed, assume we have a few minutes
  36. # of power left. Schedule a shutdown for 2 minutes from now.
  37. # This does, of course, assume you have powerd installed and your
  38. # UPS connected and working correctly.
  39. pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"
  40.  
  41. # If power was restored before the shutdown kicked in, cancel it.
  42. pr:12345:powerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled"
  43.  
  44.  
  45. # Run gettys in standard runlevels
  46. 1:2345:respawn:/sbin/mingetty tty1
  47. 2:2345:respawn:/sbin/mingetty tty2
  48. 3:2345:respawn:/sbin/mingetty tty3
  49. 4:2345:respawn:/sbin/mingetty tty4
  50. 5:2345:respawn:/sbin/mingetty tty5
  51. 6:2345:respawn:/sbin/mingetty tty6
  52.  
  53. # Single user mode
  54. ~~:S:wait:/bin/sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement