[pkg-jboss-commits] cvs commit to jboss3/debian by agx

pkg-jboss-commits@lists.alioth.debian.org pkg-jboss-commits@lists.alioth.debian.org
Mon, 17 May 2004 07:29:22 -0600


Update of /cvsroot/pkg-jboss/jboss3/debian
In directory haydn:/tmp/cvs-serv14336

Modified Files:
	jboss3.init 
Log Message:
"jboss.web already exists" startup bug

Index: jboss3.init
===================================================================
RCS file: /cvsroot/pkg-jboss/jboss3/debian/jboss3.init,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- jboss3.init	17 May 2004 09:15:00 -0000	1.2
+++ jboss3.init	17 May 2004 13:29:19 -0000	1.3
@@ -72,8 +72,11 @@
 		--user $JBOSS_USER --startas "$JAVA_HOME/bin/java"   \
 		>/dev/null; then
 
+		# Bug: startup off "all" fails when this dir exists
+		rm -rf /var/cache/jboss3/all/jboss.web/*
 		# Bug: jboss needs the cwd writeable
   		cd /var/cache/$NAME/tmp
+
 	        # -p preserves the environment (for $JAVA_HOME etc.)
 	        # -s is required because jboss's login shell is /bin/false
 	        su -p -s /bin/sh $JBOSS_USER \