Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 12 of 12
Code: # # inittab This file describes how the INIT process should set up # the system in a certain run-level. # # Version: @(#)inittab 2.04 17/05/93 MvS # 2.10 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Linux User
    Join Date
    Apr 2003
    Location
    TEXAS
    Posts
    314

    Code:
    #
    # inittab	This file describes how the INIT process should set up
    #		the system in a certain run-level.
    #
    # Version:	@(#)inittab		2.04	17/05/93	MvS
    #                                       2.10    02/10/95        PV
    #                                       3.00    02/06/1999      PV
    #                                       4.00    04/10/2002      PV
    #
    # Author&#58;	Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
    # Modified by&#58;	Patrick J. Volkerding, <volkerdi@slackware.com>
    #
    
    # These are the default runlevels in Slackware&#58;
    #   0 = halt
    #   1 = single user mode
    #   2 = unused &#40;but configured the same as runlevel 3&#41;
    #   3 = multiuser mode &#40;default Slackware runlevel&#41;
    #   4 = X11 with KDM/GDM/XDM &#40;session managers&#41;
    #   5 = unused &#40;but configured the same as runlevel 3&#41;
    #   6 = reboot
    
    # Default runlevel. &#40;Do not set to 0 or 6&#41;
    id&#58;4&#58;initdefault&#58;
    
    # System initialization &#40;runs when system boots&#41;.
    si&#58;S&#58;sysinit&#58;/etc/rc.d/rc.S
    
    # Script to run when going single user &#40;runlevel 1&#41;.
    su&#58;1S&#58;wait&#58;/etc/rc.d/rc.K
    
    # Script to run when going multi user.
    rc&#58;2345&#58;wait&#58;/etc/rc.d/rc.M
    
    # What to do at the "Three Finger Salute".
    ca&#58;&#58;ctrlaltdel&#58;/sbin/shutdown -t5 -r now
    
    # Runlevel 0 halts the system.
    l0&#58;0&#58;wait&#58;/etc/rc.d/rc.0
    
    # Runlevel 6 reboots the system.
    l6&#58;6&#58;wait&#58;/etc/rc.d/rc.6
    
    # What to do when power fails.
    pf&#58;&#58;powerfail&#58;/sbin/genpowerfail start
    
    # If power is back, cancel the running shutdown.
    pg&#58;&#58;powerokwait&#58;/sbin/genpowerfail stop
    
    # These are the standard console login getties in multiuser mode&#58;
    c1&#58;1235&#58;respawn&#58;/sbin/agetty 38400 tty1 linux
    c2&#58;1235&#58;respawn&#58;/sbin/agetty 38400 tty2 linux
    c3&#58;1235&#58;respawn&#58;/sbin/agetty 38400 tty3 linux
    c4&#58;1235&#58;respawn&#58;/sbin/agetty 38400 tty4 linux
    c5&#58;1235&#58;respawn&#58;/sbin/agetty 38400 tty5 linux
    c6&#58;12345&#58;respawn&#58;/sbin/agetty 38400 tty6 linux
    
    # Local serial lines&#58;
    #s1&#58;12345&#58;respawn&#58;/sbin/agetty -L ttyS0 9600 vt100
    #s2&#58;12345&#58;respawn&#58;/sbin/agetty -L ttyS1 9600 vt100
    
    # Dialup lines&#58;
    #d1&#58;12345&#58;respawn&#58;/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS0 vt100
    #d2&#58;12345&#58;respawn&#58;/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS1 vt100
    
    # Runlevel 4 used to be for an X window only system, until we discovered
    # that it throws init into a loop that keeps your load avg at least 1 all 
    # the time. Thus, there is now one getty opened on tty6. Hopefully no one
    # will notice. ;^&#41;
    # It might not be bad to have one text console anyway, in case something 
    # happens to X.
    x1&#58;4&#58;wait&#58;/etc/rc.d/rc.4
    
    # End of /etc/inittab
    There it is.
    The computer made me do it!! Slackware and SUSE too Gig\'em WHOOOOP!!
    \"God put me on this earth to accomplish a certain amount of tasks, At the rate I\'m going I will never die.\" (I don\'t know)

  2. #12
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Yeah, that's right. The VT gettys are disabled in runlevel 4. Look at these lines from your inittab:
    Code:
    # These are the standard console login getties in multiuser mode&#58;
    c1&#58;1235&#58;respawn&#58;/sbin/agetty 38400 tty1 linux
    c2&#58;1235&#58;respawn&#58;/sbin/agetty 38400 tty2 linux
    c3&#58;1235&#58;respawn&#58;/sbin/agetty 38400 tty3 linux
    c4&#58;1235&#58;respawn&#58;/sbin/agetty 38400 tty4 linux
    c5&#58;1235&#58;respawn&#58;/sbin/agetty 38400 tty5 linux
    Change them into this:
    Code:
    # These are the standard console login getties in multiuser mode&#58;
    c1&#58;12345&#58;respawn&#58;/sbin/agetty 38400 tty1 linux
    c2&#58;12345&#58;respawn&#58;/sbin/agetty 38400 tty2 linux
    c3&#58;12345&#58;respawn&#58;/sbin/agetty 38400 tty3 linux
    c4&#58;12345&#58;respawn&#58;/sbin/agetty 38400 tty4 linux
    c5&#58;12345&#58;respawn&#58;/sbin/agetty 38400 tty5 linux
    Then run "telinit q" to make init reread /etc/inittab.

Page 2 of 2 FirstFirst 1 2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •