Package: tomcat5.5
Severity: minor
Version: 5.5.26-5
Tags: patch
User: [EMAIL PROTECTED]
Usertags: origin-ubuntu jaunty

Calling Tomcat 5.5 "status" initscript action always returns 0.

It should return following the LSB rules [1], in particular it should
return "3" if Tomcat is not running (or "1" if Tomcat is not running and
the PID file exists).

See attached patch, which adds the relevant exit codes.

[1]
http://refspecs.freestandards.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html

-- 
Thierry Carrez

--- debian/tomcat5.5.init.old	2008-11-14 15:30:23.000000000 +0100
+++ debian/tomcat5.5.init	2008-11-14 15:30:47.000000000 +0100
@@ -196,8 +196,10 @@
 
 		if [ -f "$CATALINA_PID" ]; then
 		    log_success_msg "$DESC is not running, but pid file exists."
+		    exit 1
 		else
 		    log_success_msg "$DESC is not running."
+		    exit 3
 		fi
 	else
 		log_success_msg "$DESC is running with pid `cat $CATALINA_PID`"
_______________________________________________
pkg-java-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-java-maintainers

Reply via email to