Bugzilla (bugzilla.redhat.com) will be under maintenance for infrastructure upgrades and will not be available on July 31st between 12:30 AM - 05:30 AM UTC. We appreciate your understanding and patience. You can follow status.redhat.com for details.
Bug 522721 - tgtd init script collected problems LSB-compilant
Summary: tgtd init script collected problems LSB-compilant
Alias: None
Product: Fedora
Classification: Fedora
Component: scsi-target-utils
Version: 12
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Mike Christie
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: InitScriptsProject 584426
TreeView+ depends on / blocked
Reported: 2009-09-11 07:56 UTC by Yulia Kopkova
Modified: 2010-12-05 06:26 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 584426 (view as bug list)
Last Closed: 2010-12-05 06:26:06 UTC
Type: ---

Attachments (Terms of Use)

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):

How reproducible:

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}

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

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

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:

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: 

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.

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