aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2009-08-03 11:30:57 -0400
committerBill Nottingham <notting@redhat.com>2009-08-03 11:30:57 -0400
commit679530113793c06d82f5ee4fb78e42a5bb86331d (patch)
treea97e3b7d49e4b64c5240204c28aea6a0e7167d37
parente1891075a289123f1841e104b8668f27bab53a3d (diff)
downloadinitscripts-679530113793c06d82f5ee4fb78e42a5bb86331d.tar
initscripts-679530113793c06d82f5ee4fb78e42a5bb86331d.tar.gz
initscripts-679530113793c06d82f5ee4fb78e42a5bb86331d.tar.bz2
initscripts-679530113793c06d82f5ee4fb78e42a5bb86331d.tar.xz
initscripts-679530113793c06d82f5ee4fb78e42a5bb86331d.zip
Fix up upstart rules for s390(x). (#515222)
On mainframe, we do not use tty*, and we just start a getty on console.
-rw-r--r--event.d/console16
-rw-r--r--initscripts.spec6
2 files changed, 20 insertions, 2 deletions
diff --git a/event.d/console b/event.d/console
new file mode 100644
index 00000000..732a3fa9
--- /dev/null
+++ b/event.d/console
@@ -0,0 +1,16 @@
+# console - getty
+#
+# This service maintains a getty on console from the point the system is
+# started until it is shut down again.
+
+start on stopped rc2
+start on stopped rc3
+start on stopped rc4
+start on started prefdm
+
+stop on runlevel 0
+stop on runlevel 1
+stop on runlevel 6
+
+respawn
+exec /sbin/mingetty console
diff --git a/initscripts.spec b/initscripts.spec
index 02230237..51cf6175 100644
--- a/initscripts.spec
+++ b/initscripts.spec
@@ -87,11 +87,13 @@ rm -f \
$RPM_BUILD_ROOT/etc/sysconfig/network-scripts/ifup-ctc \
$RPM_BUILD_ROOT/etc/sysconfig/network-scripts/ifup-iucv \
$RPM_BUILD_ROOT/lib/udev/rules.d/55-ccw.rules \
- $RPM_BUILD_ROOT/lib/udev/ccw_init
+ $RPM_BUILD_ROOT/lib/udev/ccw_init \
+ $RPM_BUILD_ROOT/etc/event.d/console
%else
rm -f \
$RPM_BUILD_ROOT/etc/rc.d/rc.sysinit.s390init \
- $RPM_BUILD_ROOT/etc/sysconfig/init.s390
+ $RPM_BUILD_ROOT/etc/sysconfig/init.s390 \
+ $RPM_BUILD_ROOT/etc/event.d/tty[1-6]
%endif
%pre