closed #2349, removed use of deprecated -d flag in executable

This commit is contained in:
Julian Lam
2014-11-04 18:29:56 -05:00
parent 783481e644
commit 4125a087b5
2 changed files with 5 additions and 4 deletions

View File

@@ -192,9 +192,10 @@ Loader.start = function(callback) {
function forkWorker(isPrimary) { function forkWorker(isPrimary) {
var worker = cluster.fork({ var worker = cluster.fork({
cluster_setup: isPrimary, cluster_setup: isPrimary,
handle_jobs: isPrimary handle_jobs: isPrimary
}); }),
output = logrotate({ file: __dirname + '/logs/output.log', size: '1m', keep: 3, compress: true });
if (silent) { if (silent) {
worker.process.stdout.pipe(output); worker.process.stdout.pipe(output);

2
nodebb
View File

@@ -29,7 +29,7 @@ case "$1" in
echo " \"./nodebb log\" to view server output"; echo " \"./nodebb log\" to view server output";
# Start the loader daemon # Start the loader daemon
"$node" loader -d "$@" "$node" loader "$@"
;; ;;
stop) stop)