Bug 522721

Summary: tgtd init script collected problems LSB-compilant
Product: [Fedora] Fedora Reporter: Yulia Kopkova <ykopkova>
Component: scsi-target-utilsAssignee: Mike Christie <mchristi>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: dkovalsk, mchristi, terje.rosten
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 584426 (view as bug list) Environment:
Last Closed: 2010-12-05 06:26:06 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: 521669, 584426    

Description Yulia Kopkova 2009-09-11 07:56:15 UTC
Description of problem:
According to https://fedoraproject.org/wiki/Packaging/SysVInitScript
tgtd service should support "try-restart", "reload", "force-reload" actions.

Version-Release number of selected component (if applicable):
scsi-target-utils-0.9.5-3.fc12.x86_64

How reproducible:
Always


Steps to Reproduce:
1. # service tgtd try-restart ; echo $?
2. # service tgtd force-reload ; echo $?
3. # service tgtd reload ; echo $?
  
Actual results:
1. Usage: /etc/init.d/tgtd {start|stop|restart|status|condrestart}
1

2. Usage: /etc/init.d/tgtd {start|stop|restart|status|condrestart}
1

3. Usage: /etc/init.d/tgtd {start|stop|restart|status|condrestart}
1

Expected results:
1. Restart tgtd service if the service is already running

2. Reload the configuration of the service without actually stopping and restarting the service

3. Reload the configuration of the service and restart it so that it takes effect 

Additional info:

Comment 1 Yulia Kopkova 2009-09-15 13:01:57 UTC
One more thing:
4. Init script should return usage and exit code "3" for unknown action.

Comment 2 Yulia Kopkova 2009-09-17 09:20:42 UTC
Sorry for spamming:

5. init script should also return code "4" if restarting service under nonprivileged user:

su testuserqa -c "service $SERVICE restart"; echo $?
now: 0 
expected: 4

Comment 3 Yulia Kopkova 2009-09-24 13:00:21 UTC
(In reply to comment #1)
> One more thing:
> 4. Init script should return usage and exit code "3" for unknown action.  

Some updates about it:

4. Init script should return usage and exit code "2" for unknown action.  

   # service tgtd nonexist ; echo $?
   Usage: /etc/init.d/tgtd {start|stop|restart|status|condrestart}
now: 1
expected: 2

Comment 4 Bug Zapper 2009-11-16 12:14:43 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle.
Changing version to '12'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 6 Bug Zapper 2010-11-04 10:05:50 UTC
This message is a reminder that Fedora 12 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 12.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '12'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 12's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 12 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 7 Bug Zapper 2010-12-05 06:26:06 UTC
Fedora 12 changed to end-of-life (EOL) status on 2010-12-02. Fedora 12 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.