Reload log files on SIGUSR2

This is an attempt to play more nicely with logrotate
remotes/origin/use_db_slaves
Sandro Santilli 11 years ago
parent e8367b765a
commit 08b8741282

@ -1,6 +1,10 @@
1.11.0 -- 2014-MM-DD
--------------------
New features:
- Reload log files on SIGUSR2
1.10.1 -- 2014-03-21
-------------------

@ -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) {

Loading…
Cancel
Save