From 4125a087b57bee0eb30858d8f7d759000f39505f Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 4 Nov 2014 18:29:56 -0500 Subject: [PATCH] closed #2349, removed use of deprecated -d flag in executable --- loader.js | 7 ++++--- nodebb | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/loader.js b/loader.js index 998bd9bd5e..5781fefa54 100644 --- a/loader.js +++ b/loader.js @@ -192,9 +192,10 @@ Loader.start = function(callback) { function forkWorker(isPrimary) { var worker = cluster.fork({ - cluster_setup: isPrimary, - handle_jobs: isPrimary - }); + cluster_setup: isPrimary, + handle_jobs: isPrimary + }), + output = logrotate({ file: __dirname + '/logs/output.log', size: '1m', keep: 3, compress: true }); if (silent) { worker.process.stdout.pipe(output); diff --git a/nodebb b/nodebb index a75c075b2f..0df5899454 100755 --- a/nodebb +++ b/nodebb @@ -29,7 +29,7 @@ case "$1" in echo " \"./nodebb log\" to view server output"; # Start the loader daemon - "$node" loader -d "$@" + "$node" loader "$@" ;; stop)