Bug 44600 - init-script succeeds always
Summary: init-script succeeds always
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: anacron
Version: 1.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jens Petersen
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-06-14 17:03 UTC by Enrico Scholz
Modified: 2007-04-18 16:33 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-04-21 17:52:44 UTC
Embargoed:


Attachments (Terms of Use)

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.


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