source: projects/initscripts/trunk/init/serial.conf @ 2988

Revision 2988, 845 bytes checked in by daisuke, 13 years ago (diff)

update upstart scripts

Line 
1# Automatically start a configured serial console
2#
3# How this works:
4#
5# On boot, a udev helper examines /dev/console. If a serial console is the
6# primary console (last console on the commandline in grub),  the event
7# 'fedora.serial-console-available <port name> <speed>' is emitted, which
8# triggers this script. It waits for the runlevel to finish, ensures
9# the proper port is in /etc/securetty, and starts the getty.
10#
11# If your serial console is not the primary console, or you want a getty
12# on serial even if it's not the console, create your own event by copying
13# /etc/init/tty.conf, and changing the getty line in that file.
14
15start on fedora.serial-console-available DEV=* and stopped rc RUNLEVEL=[2345]
16stop on runlevel [S016]
17
18instance $DEV
19respawn
20pre-start exec /sbin/securetty $DEV
21exec /sbin/agetty /dev/$DEV $SPEED vt100-nav
Note: See TracBrowser for help on using the repository browser.