return to first page linux journal archive
keywordscontents

Listing 1. Slackware inittab

# Each number represents one line regardless of
# wrap. Blank lines have been deleted.
 2 # inittab: This file describes how the INIT 
     process should set up
 3 # the system in a certain run-level.
 5 # Version: @(#)inittab  2.04  17/05/93  MvS
 6 #                  2.10    02/10/95        PV
 8 # Author: Miquel van Smoorenburg, 
     miquels@drinkel.nl.mugnet.org
 9 # Modified by: Patrick J. Volkerding, 
     volkerdi@ftp.cdrom.com
11 # Default runlevel.
12 id:3:initdefault:
14 # System initialization (runs at system boot)
15 si:S:sysinit:/etc/rc.d/rc.S
17 # Script to run for single user (runlevel 1)
18 su:1S:wait:/etc/rc.d/rc.K
20 # Script to run when going multi user.
21 rc:2345:wait:/etc/rc.d/rc.M
23 # What to do at the "Three Finger Salute"
24 ca::ctrlaltdel:/sbin/shutdown -t5 -rfn now
26 # Runlevel 0 halts the system.
27 l0:0:wait:/etc/rc.d/rc.0
29 # Runlevel 6 reboots the system.
30 l6:6:wait:/etc/rc.d/rc.6
32 # What to do when power fails (shutdown to 
     single user).
33 pf::powerfail:/sbin/shutdown -f +5 
   "THE POWER IS FAILING"
35 # If power is back before shutdown, cancel 
     the running shutdown.
36 pg:0123456:powerokwait:/sbin/shutdown 
   -c "THE POWER IS BACK"
38 # If power comes back in single user mode, 
     return to multi user mode.
39 ps:S:powerokwait:/sbin/init 5
41 # The getties in multi user mode on consoles 
     an serial lines.
43 # NOTE NOTE NOTE adjust this to your getty or
44 # or you will not be able to login !!
46 # Note: for 'agetty' you use linespeed, line.
47 # for 'getty_ps' you use line, linespeed and 
     also use 'gettydefs'
48 c1:1235:respawn:/sbin/agetty 38400 tty1 linux
49 c2:1235:respawn:/sbin/agetty 38400 tty2 linux
50 c3:1235:respawn:/sbin/agetty 38400 tty3 linux
51 c4:1235:respawn:/sbin/agetty 38400 tty4 linux
52 c5:1235:respawn:/sbin/agetty 38400 tty5 linux
53 c6:12345:respawn:/sbin/agetty 38400 tty6 linux
55 # Serial lines
56 #s1:12345:respawn:/sbin/agetty 19200 ttyS0 
    vt100
57 #s2:12345:respawn:/sbin/agetty 19200 ttyS1 
    vt100
59 # Dialup lines
60 #d1:12345:respawn:/sbin/agetty -mt60 
    38400,19200,9600,2400,1200 ttyS0 vt100
61 #d2:12345:respawn:/sbin/agetty -mt60 
    38400,19200,9600,2400,1200 ttyS1 vt100
63 # Runlevel 4 used to be for an X-window 
     only system, until we discovered
64 # that it throws init into a loop that keeps 
     your load avg at least 1 all 
65 # the time. Thus, there is now one getty 
     opened on tty6. Hopefully no one
66 # will notice. ;^)
67 # It might not be bad to have one text 
     console anyway, in case something 
68 # happens to X.
69 x1:4:wait:/etc/rc.d/rc.4
71 # End of /etc/inittab