Reload log files on SIGUSR2
This is an attempt to play more nicely with logrotate
This commit is contained in:
parent
e8367b765a
commit
08b8741282
4
NEWS.md
4
NEWS.md
@ -1,6 +1,10 @@
|
|||||||
1.11.0 -- 2014-MM-DD
|
1.11.0 -- 2014-MM-DD
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
|
New features:
|
||||||
|
|
||||||
|
- Reload log files on SIGUSR2
|
||||||
|
|
||||||
1.10.1 -- 2014-03-21
|
1.10.1 -- 2014-03-21
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
|
2
app.js
2
app.js
@ -78,6 +78,8 @@ process.on('SIGUSR1', function() {
|
|||||||
|
|
||||||
process.on('SIGUSR2', function() {
|
process.on('SIGUSR2', function() {
|
||||||
ws.dumpCacheStats();
|
ws.dumpCacheStats();
|
||||||
|
log4js.configure(log4js_config);
|
||||||
|
console.log('Log files reloaded');
|
||||||
});
|
});
|
||||||
|
|
||||||
process.on('uncaughtException', function(err) {
|
process.on('uncaughtException', function(err) {
|
||||||
|
Loading…
Reference in New Issue
Block a user