From 08b8741282113b723f12e18e317bcca60d7a0907 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Fri, 28 Mar 2014 17:06:44 +0100 Subject: [PATCH] Reload log files on SIGUSR2 This is an attempt to play more nicely with logrotate --- NEWS.md | 4 ++++ app.js | 2 ++ 2 files changed, 6 insertions(+) diff --git a/NEWS.md b/NEWS.md index 8584b017..f2b9644f 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,6 +1,10 @@ 1.11.0 -- 2014-MM-DD -------------------- +New features: + + - Reload log files on SIGUSR2 + 1.10.1 -- 2014-03-21 ------------------- diff --git a/app.js b/app.js index e6f5726d..48de17a3 100755 --- a/app.js +++ b/app.js @@ -78,6 +78,8 @@ process.on('SIGUSR1', function() { process.on('SIGUSR2', function() { ws.dumpCacheStats(); + log4js.configure(log4js_config); + console.log('Log files reloaded'); }); process.on('uncaughtException', function(err) {