]> git.pld-linux.org Git - projects/rc-scripts.git/blame_incremental - inittab
Clean and recreate systemd tmpfiles (even if not using systemd).
[projects/rc-scripts.git] / inittab
... / ...
CommitLineData
1#
2# inittab This file describes how the INIT process should set up
3# the system in a certain run-level.
4#
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 PLD 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#
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
32# Trap CTRL-ALT-DELETE
33ca::ctrlaltdel:/sbin/shutdown -t3 -r now
34
35# Trap KeyboardSignal
36#kb::kbrequest:<insert your action here>
37
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
41# UPS connected and working correctly.
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
47# Run agetty on serial port
48#s0:12345:respawn:/sbin/agetty 115200 ttyS0 vt100
49#s1:12345:respawn:/sbin/agetty 115200 ttyS1 vt100
50
51# Run gettys in standard runlevels
521:12345:respawn:/sbin/mingetty --noclear tty1
53# spawn root login on tty1 without /etc/issue
54#1:12345:respawn:/sbin/mingetty tty1 --noclear --autologin root --noissue
552:2345:respawn:/sbin/mingetty tty2
563:2345:respawn:/sbin/mingetty tty3
57#4:2345:respawn:/sbin/mingetty tty4
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
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
66
67# Examples
68#9:2345:respawn:/sbin/mingetty --mono tty9
69#10:2345:respawn:/sbin/mingetty --remote-host=some.host.in.net.pl tty10
70
71# Run xdm in runlevel 5
72#x:5:respawn:/usr/bin/X11/xdm -nodaemon
This page took 0.045711 seconds and 4 git commands to generate.