412 Poznaj Linux
Listing 26.1 pokazuje przykładowy plik inittab z systemu Red Hat Linux 5.0. l isting 26.1. Przykładowy plik inittab z systemu Red Hat Linux 5.0
#
#
*
#
Ir
ł
#
4
4
#
4
#
#
#
#
#
«
#
inittab This file diescribes how the INIT process chould 3et up
thc sy3tem in a certain run-level.
Author: Miąuel van Smoorenburg,
<miquelsPdiinkel.nl.mugnet.org>
Modified for RH3 Linux by Marc F.wing and Donnie Earnes
Default run level. The run levels used for RHS dre:
0 - halt (Do NOT set initdefault to this)
1 - Single user modę
2 - Multiuser, withouL NFS (The same as 3, it you do not have
networking)
3 - Fuli multiuser modę
4 - unused
5 XII
b - reboot (Do NOT set initdefault to this)
id:3:initdefault: # System initialization.
si::sysinit:/etc/rc.d/rc.sysinit
10:0:wait:/etc/rc.d/rc 0 11:1:wait:/etc/rc.d/rc 1 12:2:wait:/etc/rc.d/rc 2 13:3:wait:/etc/rc.d/rc 3 14:4:wait:/etc/rc.d/rc 4 15:5:wait:/etc/rc.d/rc 5 16:6:wait:/etc/rc.d/rc 6
4 Things to run in every run level. ud:ronce:/sbin/update
4 Trap CTRL-ALT-DELETE
ca::ctrlaltdci:/3bin/shutdcwn -t3 -r now 4 When our UPS helis us power has failed, assume we have a few minutes