From 679530113793c06d82f5ee4fb78e42a5bb86331d Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 3 Aug 2009 11:30:57 -0400 Subject: Fix up upstart rules for s390(x). (#515222) On mainframe, we do not use tty*, and we just start a getty on console. --- event.d/console | 16 ++++++++++++++++ initscripts.spec | 6 ++++-- 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 event.d/console 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 -- cgit v1.2.1