From 70ae78109bf06c6666253895965ed2a70fd621a4 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 3 Dec 2009 14:42:41 -0500 Subject: Actually commit new files. --- init/rc.conf | 14 ++++++++++++++ init/start-ttys.conf | 13 +++++++++++++ init/tty.conf | 9 +++++++++ 3 files changed, 36 insertions(+) create mode 100644 init/rc.conf create mode 100644 init/start-ttys.conf create mode 100644 init/tty.conf 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 -- cgit v1.2.1