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.

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



-- System Information:
Debian Release: 7.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash


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