From 838558a9470367c872cbdc067e88fc79b591f49a Mon Sep 17 00:00:00 2001 From: Shriram V Date: Fri, 11 Aug 2017 07:52:45 -0700 Subject: [PATCH] ZCS:2486 - Separated jetty.base and jetty.home, removed jetty- - Zimbra's Jetty Distribution (9.3.5.v20151012) is installed in /opt/zimbra/common/jetty_home/ via a separate package. - Zimbra specific webapps and other custom jetty configuration files will be installed in /opt/zimbra/jetty_base/. - Now /opt/zimbra/mailboxd and /opt/zimbra/jetty are symbolic links that point to /opt/zimbra/jetty_base/. --- conf/jetty/jetty.xml | 42 ++++++++++++++++---------------- conf/jetty/jetty.xml.production | 42 ++++++++++++++++---------------- conf/jetty/jettyrc | 4 +-- conf/jetty/zimbra.policy.example | 4 +-- 4 files changed, 46 insertions(+), 46 deletions(-) diff --git a/conf/jetty/jetty.xml b/conf/jetty/jetty.xml index 8470a97..3eae32a 100644 --- a/conf/jetty/jetty.xml +++ b/conf/jetty/jetty.xml @@ -81,7 +81,7 @@ - /etc/keystore + /etc/keystore zimbra zimbra @@ -150,7 +150,7 @@ - /etc/keystore + /etc/keystore zimbra zimbra - + @@ -787,13 +787,13 @@ - + - /../log/access_log.yyyy_mm_dd + /../log/access_log.yyyy_mm_dd dd/MMM/yyyy:HH:mm:ss Z 30 true @@ -834,7 +834,7 @@ - /../log/trace_log.yyyy_mm_dd + /../log/trace_log.yyyy_mm_dd true 10 diff --git a/conf/jetty/jetty.xml.production b/conf/jetty/jetty.xml.production index 3a74b48..f848c44 100644 --- a/conf/jetty/jetty.xml.production +++ b/conf/jetty/jetty.xml.production @@ -122,7 +122,7 @@ %%comment VAR:zimbraMailLocalBind, - /etc/keystore + /etc/keystore @@mailboxd_keystore_password@@ @@mailboxd_keystore_password@@ @@ -187,7 +187,7 @@ ,Disabled%% - /etc/keystore + /etc/keystore @@mailboxd_keystore_password@@ @@mailboxd_keystore_password@@ @@client_ssl_truststore@@ @@ -657,11 +657,11 @@ %% - /webapps/service + /webapps/service /service - /etc/webdefault.xml - /work/service + /etc/webdefault.xml + /work/service true @@ -678,11 +678,11 @@ %% - /webapps/zimbra + /webapps/zimbra %%zimbraMailURL%% - /etc/webdefault.xml - /work/zimbra + /etc/webdefault.xml + /work/zimbra true true true @@ -708,11 +708,11 @@ %% - /webapps/zimbraAdmin + /webapps/zimbraAdmin %%zimbraAdminURL%% - /etc/webdefault.xml - /work/zimbraAdmin + /etc/webdefault.xml + /work/zimbraAdmin true true @@ -736,19 +736,19 @@ - /webapps/zimlet + /webapps/zimlet /zimlet - /etc/webdefault.xml - /work/zimlet + /etc/webdefault.xml + /work/zimlet true true - /webapps/zimlet - /../zimlets-deployed + /webapps/zimlet + /../zimlets-deployed @@ -817,7 +817,7 @@ - + @@ -826,7 +826,7 @@ Spnego Authentication Realm - /etc/spnego.properties + /etc/spnego.properties @@ -857,13 +857,13 @@ - + - /../log/access_log.yyyy_mm_dd + /../log/access_log.yyyy_mm_dd dd/MMM/yyyy:HH:mm:ss Z 30 true @@ -906,7 +906,7 @@ - /../log/trace_log.yyyy_mm_dd + /../log/trace_log.yyyy_mm_dd true 10 diff --git a/conf/jetty/jettyrc b/conf/jetty/jettyrc index 8dd62a1..5846455 100644 --- a/conf/jetty/jettyrc +++ b/conf/jetty/jettyrc @@ -1,5 +1,5 @@ -JAVA_OPTIONS="-DSTART=${JETTY_HOME}/etc/start.config -DSTOP.PORT=7867 -DSTOP.KEY=stop -Dzimbra.config=/opt/zimbra/conf/localconfig.xml -Djava.library.path=/opt/zimbra/lib -Djava.endorsed.dirs=${JETTY_HOME}/common/endorsed" +JAVA_OPTIONS="-DSTART=${JETTY_BASE}/etc/start.config -DSTOP.PORT=7867 -DSTOP.KEY=stop -Dzimbra.config=/opt/zimbra/conf/localconfig.xml -Djava.library.path=/opt/zimbra/lib -Djava.endorsed.dirs=${JETTY_BASE}/common/endorsed -Djetty.home=${JETTY_HOME} -Djetty.base=${JETTY_BASE}" JETTY_CONSOLE=/opt/zimbra/log/jetty.out JETTY_RUN=/opt/zimbra/log -JETTY_ARGS=" --module=zimbra,server,servlet,servlets,jsp,jstl,jmx,resources,websocket,ext,plus,rewrite,monitor,continuation,webapp jetty.home=${JETTY_HOME} jetty.base=${JETTY_HOME}" +JETTY_ARGS=" --module=zimbra,server,servlet,servlets,jsp,jstl,jmx,resources,websocket,ext,plus,rewrite,monitor,continuation,webapp jetty.home=${JETTY_HOME} jetty.base=${JETTY_BASE}" CONFIGS="etc/jetty.xml" diff --git a/conf/jetty/zimbra.policy.example b/conf/jetty/zimbra.policy.example index d3a8bd6..6d825b8 100644 --- a/conf/jetty/zimbra.policy.example +++ b/conf/jetty/zimbra.policy.example @@ -15,8 +15,8 @@ grant { permission javax.net.ssl.SSLPermission "*"; //Jetty internals - permission java.io.FilePermission "${jetty.home}/-", "read"; - permission java.io.FilePermission "${jetty.home}/work/-", "read,write,delete"; + permission java.io.FilePermission "${jetty.base}/-", "read"; + permission java.io.FilePermission "${jetty.base}/work/-", "read,write,delete"; permission java.io.FilePermission "etc/-", "read"; permission java.io.FilePermission "null", "read";