# Copyright (C) 2000-2007 Astaro AG www.astaro.org # For license information look at /doc/gpl-license.txt or # http://www.astaro.org/gpl-license.txt # # $Id: inittab,v 1.3.2.1 2007/02/19 16:04:03 mgehrlein Exp $ # # Maintainer: Dennis Koslowski # # This is the main configuration file of /etc/init, which # is executed by the kernel on startup. It describes what # scripts are used for the different run-levels. # # All scripts for runlevel changes are in /etc/init.d/ # # default runlevel id:3:initdefault: # check system on startup # first script to be executed if not booting in emergency (-b) mode #si:I:wait:/etc/init.d/boot si::bootwait:/etc/init.d/boot # /etc/init.d/rc takes care of runlevel handling # # runlevel 0 is halt # runlevel S is single-user # runlevel 1 is single-user without network # runlevel 2 is unused # runlevel 3 is multi-user with network # runlevel 4 is factory reset # runlevel 5 is kdump # runlevel 6 is reboot l0:0:wait:/etc/init.d/rc 0 l1:1:wait:/etc/init.d/rc 1 l2:2:wait:/etc/init.d/rc 2 l3:3:wait:/etc/init.d/rc 3 l4:4:wait:/etc/init.d/rc 4 l5:5:wait:/etc/init.d/rc 5 l6:6:wait:/etc/init.d/rc 6 # what to do in single-user mode ls:S:wait:/etc/init.d/rc S ~~:S:respawn:/etc/sulogin # what to do when CTRL-ALT-DEL is pressed #ca::ctrlaltdel:/sbin/shutdown -r -t 4 now # special keyboard request (Alt-UpArrow) # look into the kbd-0.90 docs for this kb::kbrequest:/bin/echo "Keyboard Request -- edit /etc/inittab to let this work." # start superdaemon su:3:respawn:/usr/local/bin/daemon-watcher selfmonng.plx '/usr/local/bin/selfmonng.plx &' 23 # modify it, if this is a headless device 1:123:respawn:/sbin/mingetty --noclear --no-hostname tty1 2:123:respawn:/sbin/mingetty --no-hostname tty2 3:123:respawn:/sbin/mingetty --no-hostname tty3 4:123:respawn:/sbin/mingetty --no-hostname tty4 # Serial login # modify it if you want a console on serial port # s0:123:respawn:/usr/sbin/mgetty ttyS0 s0:23:respawn:/usr/sbin/mgetty -x0 -s 38400 ttyS0 s1:23:respawn:/usr/sbin/mgetty -x0 -s 38400 ttyS1