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)