Bug 30087 - system prints out a misleading message while halting
Summary: system prints out a misleading message while halting
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: initscripts
Version: 7.0
Hardware: i386
OS: Linux
medium
high
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-02-28 22:12 UTC by Landon Curt Noll
Modified: 2014-03-17 02:19 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2001-02-28 22:12:15 UTC
Embargoed:


Attachments (Terms of Use)

Description Landon Curt Noll 2001-02-28 22:12:12 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.2.17-14 i686)


When halting the system, the system prints our the message: "The System is
halted"
and them performs some other actions (such as stopping md devices) and then
the system prints "System halted".

Some users, seeing the "The system is halted" powerdown without waiting for
the
the remaining actions and the second "System halted" mesage to be printed;
resulting
in undesirable effects.

Reproducible: Always
Steps to Reproduce:
1./sbin/halt
2.notice the "The system is halted" message
3.notice that the system does not halt but instead does other things
	

Actual Results:  The system is halted
stopping md devices
System halted

Expected Results:  There should be only one halt message.

Apply this patch to /etc/rc.d/init.d/halt:

*** halt	2001/02/28 22:04:51	1.1
--- halt	2001/02/28 22:05:15
***************
*** 27,33 ****
  # See how we were called.
  case "$0" in
    *halt)
! 	message="The system is halted"
  	command="halt"
  	;;
    *reboot)
--- 27,33 ----
  # See how we were called.
  case "$0" in
    *halt)
! 	message="The system is about to be halted"
  	command="halt"
  	;;
    *reboot)

This fake "System halted" as resulted in loss of data because the user
powered down before the md devices were stopped.  While it is the fault
of our md devices ... had the system not printed a misleading message,
the user would not have performed a pre-mature powerdown.

Comment 1 Bill Nottingham 2001-02-28 22:19:04 UTC
Changed to 'Halting system...' in initscripts-5.70-1 or so.


Note You need to log in before you can comment on or make changes to this bug.