]> git.pld-linux.org Git - projects/rc-scripts.git/blame - inittab
Don't fail if arrays are already assembled (ex raid10 with 4 devices, one device...
[projects/rc-scripts.git] / inittab
CommitLineData
7742e157 1#
3e36a08f
TP
2# inittab This file describes how the INIT process should set up
3# the system in a certain run-level.
7742e157 4#
b0443108 5#
3e36a08f
TP
6# Author: Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
7# Modified for RHS Linux by Marc Ewing and Donnie Barnes
12de71be 8#
7742e157 9
ffe19b59 10# Default runlevel. The runlevels used by PLD Linux are:
7742e157
AF
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)
3e36a08f 18#
7742e157
AF
19id:3:initdefault:
20
21# System initialization.
22si::sysinit:/etc/rc.d/rc.sysinit
23
24l0:0:wait:/etc/rc.d/rc 0
25l1:1:wait:/etc/rc.d/rc 1
26l2:2:wait:/etc/rc.d/rc 2
27l3:3:wait:/etc/rc.d/rc 3
28l4:4:wait:/etc/rc.d/rc 4
29l5:5:wait:/etc/rc.d/rc 5
30l6:6:wait:/etc/rc.d/rc 6
31
7742e157 32# Trap CTRL-ALT-DELETE
12de71be 33ca::ctrlaltdel:/sbin/shutdown -t3 -r now
7742e157 34
3e36a08f
TP
35# Trap KeyboardSignal
36#kb::kbrequest:<insert your action here>
37
7742e157
AF
38# When our UPS tells us power has failed, assume we have a few minutes
39# of power left. Schedule a shutdown for 2 minutes from now.
40# This does, of course, assume you have powerd installed and your
3e36a08f 41# UPS connected and working correctly.
7742e157
AF
42pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"
43
44# If power was restored before the shutdown kicked in, cancel it.
45pr:12345:powerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled"
46
423f827f 47# Run agetty on serial port
55f29d38
ER
48#s0:12345:respawn:/sbin/agetty 115200 ttyS0 vt100
49#s1:12345:respawn:/sbin/agetty 115200 ttyS1 vt100
7742e157
AF
50
51# Run gettys in standard runlevels
521:12345:respawn:/sbin/mingetty --noclear tty1
927ff83f
ER
53# spawn root login on tty1 without /etc/issue
54#1:12345:respawn:/sbin/mingetty tty1 --noclear --autologin root --noissue
7742e157
AF
552:2345:respawn:/sbin/mingetty tty2
563:2345:respawn:/sbin/mingetty tty3
927ff83f 57#4:2345:respawn:/sbin/mingetty tty4
cecfff3a
ER
58#5:2345:respawn:/sbin/mingetty tty5
59#6:2345:respawn:/sbin/mingetty tty6
60#7:2345:respawn:/sbin/mingetty tty7
61#8:2345:respawn:/sbin/mingetty tty8
15c09078
ER
62#9:2345:respawn:/sbin/mingetty tty9
63#10:2345:respawn:/sbin/mingetty tty10
64#11:2345:respawn:/sbin/mingetty tty11
65#12:2345:respawn:/sbin/mingetty tty12
7742e157 66
de1fc6ce 67# Examples
55f29d38
ER
68#9:2345:respawn:/sbin/mingetty --mono tty9
69#10:2345:respawn:/sbin/mingetty --remote-host=some.host.in.net.pl tty10
de1fc6ce 70
7742e157 71# Run xdm in runlevel 5
12de71be 72#x:5:respawn:/usr/bin/X11/xdm -nodaemon
This page took 0.628357 seconds and 4 git commands to generate.