Dzahn has submitted this change and it was merged.

Change subject: Gerrit: Have log4j re-read its configuration every 60 seconds
......................................................................


Gerrit: Have log4j re-read its configuration every 60 seconds

This avoids having to restart the service itself

Change-Id: Ie87a660d12692d0214127fe6ddeb6f2c969f996a
---
M modules/gerrit/manifests/jetty.pp
M modules/gerrit/templates/log4j.properties.erb
2 files changed, 4 insertions(+), 2 deletions(-)

Approvals:
  Dzahn: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/gerrit/manifests/jetty.pp 
b/modules/gerrit/manifests/jetty.pp
index 93b7952..9f35328 100644
--- a/modules/gerrit/manifests/jetty.pp
+++ b/modules/gerrit/manifests/jetty.pp
@@ -155,8 +155,7 @@
         ensure    => running,
         subscribe => [
             File['/var/lib/gerrit2/review_site/etc/gerrit.config'],
-            File['/var/lib/gerrit2/review_site/etc/secure.config'],
-            File['/var/lib/gerrit2/review_site/etc/log4j.properties']
+            File['/var/lib/gerrit2/review_site/etc/secure.config']
         ],
         enable    => true,
         hasstatus => false,
diff --git a/modules/gerrit/templates/log4j.properties.erb 
b/modules/gerrit/templates/log4j.properties.erb
index 54b0b95..7e24cdc 100644
--- a/modules/gerrit/templates/log4j.properties.erb
+++ b/modules/gerrit/templates/log4j.properties.erb
@@ -12,6 +12,9 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 #
+
+monitorInterval=60
+
 log4j.rootCategory=INFO, stderr
 log4j.appender.stderr=org.apache.log4j.ConsoleAppender
 log4j.appender.stderr.target=System.err

-- 
To view, visit https://gerrit.wikimedia.org/r/315846
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie87a660d12692d0214127fe6ddeb6f2c969f996a
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Chad <ch...@wikimedia.org>
Gerrit-Reviewer: BryanDavis <bda...@wikimedia.org>
Gerrit-Reviewer: Dzahn <dz...@wikimedia.org>
Gerrit-Reviewer: Hashar <has...@free.fr>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to