Package: tgt
Version: 1:1.0.48-1
Severity: important

Dear Maintainer,

/etc/init.d/tgt accepts a status argument, but upon finding that tgt is
not running, it exits 0, which is not compliant with LSB, and is not
useful. It should instead exit 3, per LSB init standards:

http://refspecs.linuxbase.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html

Here is a diff against current git

diff --git a/debian/init b/debian/init
index 9e3c9fa..7c23422 100644
--- a/debian/init
+++ b/debian/init
@@ -140,6 +140,7 @@ status()
            echo "tgtd is running. Run 'tgt-admin -s' to see detailed target 
info."
        else
            echo "tgtd is NOT running."
+           exit 3
        fi
 }


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