Bug 85127 - Kudzu's initscript "status" option does not work properly
Summary: Kudzu's initscript "status" option does not work properly
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Public Beta
Classification: Retired
Component: kudzu
Version: phoebe
Hardware: i386
OS: Linux
medium
low
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks: 79578 84358
TreeView+ depends on / blocked
 
Reported: 2003-02-25 22:47 UTC by Peter van Egdom
Modified: 2014-03-17 02:34 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-02-25 23:18:17 UTC
Embargoed:


Attachments (Terms of Use)

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.


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