aboutsummaryrefslogtreecommitdiffstats
path: root/init/start-ttys.conf
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2009-12-03 14:42:41 -0500
committerBill Nottingham <notting@redhat.com>2009-12-03 14:42:41 -0500
commit70ae78109bf06c6666253895965ed2a70fd621a4 (patch)
treecaf0ff175ac9cf60452331767bf890e3c83c7149 /init/start-ttys.conf
parent77d4b9ab4339d1ff11cbf3a51627b2a708e14227 (diff)
downloadinitscripts-70ae78109bf06c6666253895965ed2a70fd621a4.tar
initscripts-70ae78109bf06c6666253895965ed2a70fd621a4.tar.gz
initscripts-70ae78109bf06c6666253895965ed2a70fd621a4.tar.bz2
initscripts-70ae78109bf06c6666253895965ed2a70fd621a4.tar.xz
initscripts-70ae78109bf06c6666253895965ed2a70fd621a4.zip
Actually commit new files.
Diffstat (limited to 'init/start-ttys.conf')
-rw-r--r--init/start-ttys.conf13
1 files changed, 13 insertions, 0 deletions
diff --git a/init/start-ttys.conf b/init/start-ttys.conf
new file mode 100644
index 00000000..bfb85939
--- /dev/null
+++ b/init/start-ttys.conf
@@ -0,0 +1,13 @@
+#
+# This service starts the configured number of gettys.
+
+start on stopped rc RUNLEVEL=[2345]
+
+env ACTIVE_CONSOLES=/dev/tty[1-3]
+task
+script
+ . /etc/sysconfig/init
+ for tty in $(echo $ACTIVE_CONSOLES) ; do
+ initctl start tty TTY=$tty
+ done
+end script