diff options
-rw-r--r-- | event.d/console | 16 | ||||
-rw-r--r-- | initscripts.spec | 6 |
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 |