Bug 759573 - Halt script not modified in CentOS 6 to shut down UPS
Summary: Halt script not modified in CentOS 6 to shut down UPS
Keywords:
Status: CLOSED DUPLICATE of bug 754984
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: apcupsd
Version: el6
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Michal Hlavinka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-02 17:51 UTC by jboyce
Modified: 2011-12-05 10:42 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-05 10:42:50 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description jboyce 2011-12-02 17:51:14 UTC
Description of problem:
The halt script should be modified during APCUPSD installation to provide the killpower command to the UPS so that it shuts down after the OS is shutdown.

Version-Release number of selected component (if applicable):
apcupsd-3.14.8-2.el6.x86_64

How reproducible:


Steps to Reproduce:
1. Base install of CentOS 6.
2. Yum install of APCUPSD from EPEL
3. 
  
Actual results:
UPS power is drained to zero charge.

Expected results:
UPS should power off shortly after the OS shutdown completes, while there is still reserve power in the UPS.

Additional info:
Following installation of APCUPSD from EPEL onto a basic installation of CentOS 6, I tested the system following the guidelines in the user manual for a full power down test to verify that OS power down and UPS power down were working as described in the manual.  The description of the test is here: http://www.apcupsd.com/manual/manual.html#full-power-down-test.  The conclusion of the test was that the UPS was not given the command to power down after the OS had powered down.  I reviewed the halt script to verify if the installation of APCUPSD had properly modified the halt script as described in the manual here: http://www.apcupsd.com/manual/manual.html#verifying-a-source-installation.  The conclusion is that the halt script is not modified to command the UPS to shut down.

Complete description of my tests used to identify the problem is described here.
http://sourceforge.net/mailarchive/forum.php?thread_name=74B9B3B3F8C147548D38AC25960695EA%40JABOpti755&forum_name=apcupsd-users

During a yum install of APCUPSD from EPEL into a basic installation of CentOS 6 the halt script should be modified as described in the APCUPSD manual to shut down the UPS upon completion of OS shutdown.  This prevents the UPS from running down to zero battery charge before shutting down, and therefore leaves some reserve battery charge for when power returns to the system and the OS boots.

This is similar to the bug that is filed here, except this request is that the halt script should be modified by APCUPSD when it is installed, rather than request that the stock halt script be changed in the base OS for all OS installations.
https://bugzilla.redhat.com/show_bug.cgi?id=754984

Comment 1 Michal Hlavinka 2011-12-05 10:42:50 UTC
(In reply to comment #0)
> Description of problem:
> The halt script should be modified during APCUPSD installation to provide the
> killpower command to the UPS so that it shuts down after the OS is shutdown.

Modifying halt script during installation won't be correct way how to do this. There would be problems when initscript package updates this file. Anyway, feature request for this is already filed for correct component - initscripts.

*** This bug has been marked as a duplicate of bug 754984 ***


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