Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 97781

Summary: 'service apmd restart' succeeds everytime
Product: [Retired] Red Hat Raw Hide Reporter: Enrico Scholz <rh-bugzilla>
Component: apmdAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact: Jay Turner <jturner>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0CC: chris.ricker, rvokal, srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 3.0.2-20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-10-22 21:10:27 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:
Bug Depends On:    
Bug Blocks: 100643    

Description Enrico Scholz 2003-06-20 21:48:28 UTC
Description of problem:

The return value of 'service apmd restart' should reflect errors, but:

| # mv /usr/sbin/apmd{,_}    # Create error-condition
| # service apmd restart
| Shutting down APM daemon:                                              [FAILED]
| Starting up APM daemon: execvp: No such file or directory
|                                                                        [FAILED]
| # echo $?
| 0

This is caused by a broken RETVAL=$? assignment in the restart()
function, see https://bugzilla.fedora.us/show_bug.cgi?id=346#c7 for
details.


Version-Release number of selected component (if applicable):

apmd-3.0.2-19

Comment 1 Bill Nottingham 2003-10-22 21:10:27 UTC
fixed in 3.0.2-20