Bug 85127

Summary: Kudzu's initscript "status" option does not work properly
Product: [Retired] Red Hat Public Beta Reporter: Peter van Egdom <p.van.egdom>
Component: kudzuAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: low Docs Contact:
Priority: medium    
Version: phoebeCC: rvokal
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: 2003-02-25 23:18:17 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: 79578, 84358    

Description Peter van Egdom 2003-02-25 22:47:53 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030206

Description of problem:
Kudzu's initscript (/etc/rc.d/init.d/kudzu) has a couple of issues :

- It only mentions that it has the options "start" and "stop", but
  not "status".

    (Usage: /etc/rc.d/init.d/kudzu {start|stop})

- It's 'hidden' "status" option returns some errors, which is highly
  visible in "redhat-config-services" :

    {base} has run
    /etc/rc.d/init.d/kudzu: line 81: return: can only `return' from
    a function or sourced script
    kudzu is stopped
    /etc/rc.d/init.d/kudzu: line 84: return: can only `return' from
    a function or sourced script


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


How reproducible:
Always

Steps to Reproduce:
1. /etc/rc.d/init.d/kudzu
2. /etc/rc.d/init.d/kudzu status
3.
    

Actual Results:  
- Usage: /etc/rc.d/init.d/kudzu {start|stop}

- {base} has run
   /etc/rc.d/init.d/kudzu: line 81: return: can only `return' from
   a function or sourced script
  kudzu is stopped
   /etc/rc.d/init.d/kudzu: line 84: return: can only `return' from
   a function or sourced script


Expected Results: 
- Usage: /etc/rc.d/init.d/kudzu {start|stop|status}

- kudzu is stopped


Additional info:

Tested on both Kudzu 0.99.96 (Phoebe 8.0.94) and Kudzu 0.99.97 (Rawhide).

Comment 1 Bill Nottingham 2003-02-25 23:18:17 UTC
fixed in 99.99.