Control: tags -1 pending

Hi Patrick and thanks for the report!

On 15:27 Wed 20 Aug     , Patrick Matthäi wrote:
> Package: tgt
> Version: 1:1.0.48-1
> Severity: important
> 
> Hi,
> 
> the init script is not LSB compliant at all, because:
> 
> a) stop vs. forcedstop
> stop does not work if there are still open sessions:
>       # /etc/init.d/tgt stop ; echo $?
>               [FAIL] Stopping target framework daemon: tgtd failed!
>               Some initiators are still connected - could not stop tgtd
>               2
> I had to change the use of stop() to forcedstop(), so that tgt works with 
> HeartBeat.

This is intentional and I am a bit reluctant to change the behavior at 
this point (although under systemd we default to forcedstop, having no 
ability to define custom actions). I'll think a bit more about 
defaulting to a hard behavior before the next release. Note that failing 
in this case does not seem to be an LSB violation.

> 
> b) stop has to success
> If the daemon is not running and you stop it again, the script has to success!
>       # /etc/init.d/tgt stop ; echo $?
>               Force-stopping target framework daemon
>               tgtd is not running
>               1
> Errormessages from heartbeat:
> Aug 20 14:50:23 xav-share1-1 ResourceManager[5503]: ERROR: Return code 1 from 
> /etc/init.d/tgt
> Aug 20 14:50:24 xav-share1-1 ResourceManager[5503]: info: Retrying failed 
> stop operation [tgt]
> Aug 20 14:50:24 xav-share1-1 ResourceManager[5503]: info: Running 
> /etc/init.d/tgt  stop
> Aug 20 14:50:24 xav-share1-1 ResourceManager[5503]: ERROR: Return code 1 from 
> /etc/init.d/tgt
> Aug 20 14:50:25 xav-share1-1 ResourceManager[5503]: info: Retrying failed 
> stop operation [tgt]
> Aug 20 14:50:25 xav-share1-1 ResourceManager[5503]: info: Running 
> /etc/init.d/tgt  stop
> Aug 20 14:50:25 xav-share1-1 ResourceManager[5503]: ERROR: Return code 1 from 
> /etc/init.d/tgt
> Aug 20 14:50:26 xav-share1-1 ResourceManager[5503]: info: Retrying failed 
> stop operation [tgt]
> Aug 20 14:50:26 xav-share1-1 ResourceManager[5503]: info: Running 
> /etc/init.d/tgt  stop
> Aug 20 14:50:26 xav-share1-1 ResourceManager[5503]: ERROR: Return code 1 from 
> /etc/init.d/tgt
> Aug 20 14:50:26 xav-share1-1 ResourceManager[5503]: ERROR: Resource script 
> for tgt probably not LSB-compliant.
> Aug 20 14:50:26 xav-share1-1 ResourceManager[5503]: WARN: it (tgt) MUST 
> succeed on a stop when already stopped
> 

True, this is an LSB violation and will be fixed in the next upload, 
which will also close the bug. If you feel that a) is an LSB violation, 
feel free to re-open it.

Regards,
Apollon


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to