Bug 30087

Summary: system prints out a misleading message while halting
Product: [Retired] Red Hat Linux Reporter: Landon Curt Noll <redhat-mail>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: high Docs Contact:
Priority: medium    
Version: 7.0CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-02-28 22:12:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.