From: Waldemar Kozaczuk <jwkozac...@gmail.com>
Committer: Waldemar Kozaczuk <jwkozac...@gmail.com>
Branch: master

tomcat: reconfigured to make it run with ROFS

Signed-off-by: Waldemar Kozaczuk <jwkozac...@gmail.com>

---
diff --git a/tomcat/module.py b/tomcat/module.py
--- a/tomcat/module.py
+++ b/tomcat/module.py
@@ -4,7 +4,7 @@
 
 _catalina_base = "/usr/tomcat"
 _catalina_home = _catalina_base
-_catalina_tmpdir = _catalina_base + "/temp"
+_catalina_tmpdir = "/tmp/catalina"
 
 _classpath = [_catalina_home + "/bin/bootstrap.jar"]
 
diff --git a/tomcat/patches/perf/0009-Change-workdir-and-logs-to-tmp.patch 
b/tomcat/patches/perf/0009-Change-workdir-and-logs-to-tmp.patch
--- a/tomcat/patches/perf/0009-Change-workdir-and-logs-to-tmp.patch
+++ b/tomcat/patches/perf/0009-Change-workdir-and-logs-to-tmp.patch
@@ -0,0 +1,20 @@
+--- a/conf/server.xml
++++ b/conf/server.xml
+@@ -148,7 +148,7 @@
+       </Realm>
+ 
+       <Host name="localhost"  appBase="webapps"
+-            unpackWARs="true" autoDeploy="true">
++            unpackWARs="true" autoDeploy="true" workDir="/tmp/catalina">
+ 
+         <!-- SingleSignOn valve, share authentication between web applications
+              Documentation at: /docs/config/valve.html -->
+@@ -159,7 +159,7 @@
+         <!-- Access log processes all example.
+              Documentation at: /docs/config/valve.html
+              Note: The pattern used is equivalent to using pattern="common" 
-->
+-        <Valve className="org.apache.catalina.valves.AccessLogValve" 
directory="logs"
++        <Valve className="org.apache.catalina.valves.AccessLogValve" 
directory="/tmp/logs"
+                prefix="localhost_access_log" suffix=".txt"
+                pattern="%h %l %u %t &quot;%r&quot; %s %b" />
+ 
diff --git a/tomcat/patches/perf/0010-Change-logs-locations-to-tmp-dir.patch 
b/tomcat/patches/perf/0010-Change-logs-locations-to-tmp-dir.patch
--- a/tomcat/patches/perf/0010-Change-logs-locations-to-tmp-dir.patch
+++ b/tomcat/patches/perf/0010-Change-logs-locations-to-tmp-dir.patch
@@ -0,0 +1,32 @@
+--- a/conf/logging.properties
++++ b/conf/logging.properties
+@@ -23,25 +23,25 @@
+ ############################################################
+ 
+ 1catalina.org.apache.juli.AsyncFileHandler.level = FINE
+-1catalina.org.apache.juli.AsyncFileHandler.directory = ${catalina.base}/logs
++1catalina.org.apache.juli.AsyncFileHandler.directory = /tmp/logs
+ 1catalina.org.apache.juli.AsyncFileHandler.prefix = catalina.
+ 1catalina.org.apache.juli.AsyncFileHandler.maxDays = 90
+ 1catalina.org.apache.juli.AsyncFileHandler.encoding = UTF-8
+ 
+ 2localhost.org.apache.juli.AsyncFileHandler.level = FINE
+-2localhost.org.apache.juli.AsyncFileHandler.directory = ${catalina.base}/logs
++2localhost.org.apache.juli.AsyncFileHandler.directory = /tmp/logs
+ 2localhost.org.apache.juli.AsyncFileHandler.prefix = localhost.
+ 2localhost.org.apache.juli.AsyncFileHandler.maxDays = 90
+ 2localhost.org.apache.juli.AsyncFileHandler.encoding = UTF-8
+ 
+ 3manager.org.apache.juli.AsyncFileHandler.level = FINE
+-3manager.org.apache.juli.AsyncFileHandler.directory = ${catalina.base}/logs
++3manager.org.apache.juli.AsyncFileHandler.directory = /tmp/logs
+ 3manager.org.apache.juli.AsyncFileHandler.prefix = manager.
+ 3manager.org.apache.juli.AsyncFileHandler.maxDays = 90
+ 3manager.org.apache.juli.AsyncFileHandler.encoding = UTF-8
+ 
+ 4host-manager.org.apache.juli.AsyncFileHandler.level = FINE
+-4host-manager.org.apache.juli.AsyncFileHandler.directory = 
${catalina.base}/logs
++4host-manager.org.apache.juli.AsyncFileHandler.directory = /tmp/logs
+ 4host-manager.org.apache.juli.AsyncFileHandler.prefix = host-manager.
+ 4host-manager.org.apache.juli.AsyncFileHandler.maxDays = 90
+ 4host-manager.org.apache.juli.AsyncFileHandler.encoding = UTF-8

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osv-dev/0000000000009de2a805a3b1e7d7%40google.com.

Reply via email to