Bug 232887 - service xinetd status always returns success
service xinetd status always returns success
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: xinetd (Show other bugs)
6
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jan Safranek
Brock Organ
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-03-19 05:48 EDT by Tobias Oed
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version: xinetd-2.3.14-9.fc6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-06-19 01:22:41 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Tobias Oed 2007-03-19 05:48:11 EDT
Description of problem:
I tried to use my standard
if service X status; then service X reload; else service X start; fi
with X=xinetd today and it failed because service xinetd status always returns
success even when xinied is stopped.

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

How reproducible:
100%

Steps to Reproduce:
1. service xinetd stop
2. service xined status
3. echo $?

Actual results:
0

Expected results:
Something else than 0

Additional info:
Quick patch to adress the issue
--- xinetd.orig 2006-10-01 22:33:47.000000000 +0200
+++ xinetd      2007-03-19 10:46:49.000000000 +0100
@@ -103,6 +103,7 @@
        ;;
     status)
        status $prog
+       RETVAL=$?
        ;;
     restart)
        restart
Comment 1 Fedora Update System 2007-05-21 18:26:48 EDT
xinetd-2.3.14-9.fc6 has been pushed for fc6, which should resolve this issue.  If these problems are still present in this version, then 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.