Bug 442726 - Init script "status" does not set return value
Init script "status" does not set return value
Product: Fedora
Classification: Fedora
Component: vixie-cron (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Marcela Mašláňová
Fedora Extras Quality Assurance
: Reopened
Depends On:
  Show dependency treegraph
Reported: 2008-04-16 09:53 EDT by Tim Jackson
Modified: 2008-11-11 21:55 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-11-11 21:55:02 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Tim Jackson 2008-04-16 09:53:32 EDT
Description of problem:
When running "service crond status", the return value is the same regardless of
whether crond is running or not. 

Additional information:
Most daemons return a different value. The internal "status" function in
/etc/init.d/functions does return different values but the crond init script
fails to pass these on via $RETVAL.

Snippet from crond init script:

        status $CROND

Comparable section from httpd init script (which does the right thing):

        status $httpd

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

How to reproduce:
# service crond status
crond (pid 2769) is running...
# echo $?
# service crond stop
Stopping crond:                                            [  OK  ]
# service crond status
crond is stopped
# echo $?

The last value should not be 0.
Comment 1 Marcela Mašláňová 2008-05-02 06:41:17 EDT
For example:

The service is running or OK -> output is 0
Comment 2 Tim Jackson 2008-05-02 06:50:42 EDT
Are we reading the same document? From the very link you sent:

"3	program is not running"
Comment 3 Marcela Mašláňová 2008-05-02 08:06:21 EDT
Hm, I was sure, that I fixed all init scripts.
I'll fix it in next update of vixie-cron.
Comment 4 Fedora Update System 2008-10-30 07:43:10 EDT
vixie-cron-4.2-9.fc8 has been submitted as an update for Fedora 8.
Comment 5 Fedora Update System 2008-10-31 06:23:31 EDT
vixie-cron-4.2-9.fc8 has been pushed to the Fedora 8 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update vixie-cron'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F8/FEDORA-2008-9310
Comment 6 Fedora Update System 2008-11-11 21:54:59 EST
vixie-cron-4.2-9.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.

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