aboutsummaryrefslogtreecommitdiffstats
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
parent77d4b9ab4339d1ff11cbf3a51627b2a708e14227 (diff)
downloadinitscripts-70ae78109bf06c6666253895965ed2a70fd621a4.tar
initscripts-70ae78109bf06c6666253895965ed2a70fd621a4.tar.gz
initscripts-70ae78109bf06c6666253895965ed2a70fd621a4.tar.bz2
initscripts-70ae78109bf06c6666253895965ed2a70fd621a4.tar.xz
initscripts-70ae78109bf06c6666253895965ed2a70fd621a4.zip
Actually commit new files.
-rw-r--r--init/rc.conf14
-rw-r--r--init/start-ttys.conf13
-rw-r--r--init/tty.conf9
3 files changed, 36 insertions, 0 deletions
diff --git a/init/rc.conf b/init/rc.conf
new file mode 100644
index 00000000..e7285e47
--- /dev/null
+++ b/init/rc.conf
@@ -0,0 +1,14 @@
+# rc - System V runlevel compatibility
+#
+# This task runs the old sysv-rc runlevel scripts. It
+# is usually started by the telinit compatibility wrapper.
+
+start on runlevel [0123456]
+
+stop on runlevel [!$RUNLEVEL]
+
+task
+
+export RUNLEVEL
+console output
+exec /etc/rc.d/rc $RUNLEVEL
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
diff --git a/init/tty.conf b/init/tty.conf
new file mode 100644
index 00000000..251e1139
--- /dev/null
+++ b/init/tty.conf
@@ -0,0 +1,9 @@
+# tty - getty
+#
+# This service maintains a getty on the sepcified device.
+
+stop on runlevel [016]
+
+respawn
+instance $TTY
+exec /sbin/mingetty $TTY