Bug 44600

Summary: init-script succeeds always
Product: [Retired] Red Hat Raw Hide Reporter: Enrico Scholz <rh-bugzilla>
Component: anacronAssignee: Jens Petersen <petersen>
Status: CLOSED CURRENTRELEASE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0CC: djuran
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: 2004-04-21 17:52:44 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 Enrico Scholz 2001-06-14 17:03:55 UTC
Description of Problem:

/etc/init.d/anacron returns always with an errorcode indicating success --
even on failed actions.

This can be cured by replacing the last line

| exit 0

with

| exit $?



How Reproducible:

everytime

Steps to Reproduce:
1. service anacron stop ## I know -- this makes no sense, anacron is not a
service really...
2. service anacron status && echo 'This should not happen'  || echo 'OK'


Actual Results:

anacron dead but subsys locked
This should not happen


Expected Results:

anacron dead but subsys locked
OK


Additional Information:

$ rpm -q anacron
anacron-2.3-16

Comment 1 Jens Petersen 2003-07-10 02:58:25 UTC
This seems to have been fixed for some time.

Comment 2 Jens Petersen 2003-07-10 07:42:34 UTC
Ok, I get it now.

Should be fixed in anacron-2.3-29, thanks.

Comment 3 Miloslav Trmac 2004-04-21 17:52:44 UTC
Confirmed in FC1.