Преглед изворни кода

Logging stdout and stderr.

Winston Li пре 12 година
родитељ
комит
92fbf973b4
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      services/git-bridge/bin/wlgb

+ 1 - 1
services/git-bridge/bin/wlgb

@@ -55,7 +55,7 @@ do_start()
 	fi
 	fi
 	echo "Starting WriteLatex-Git Bridge..."
 	echo "Starting WriteLatex-Git Bridge..."
 	start-stop-daemon --start --quiet --make-pidfile --pidfile $PIDFILE --exec $DAEMON -- \
 	start-stop-daemon --start --quiet --make-pidfile --pidfile $PIDFILE --exec $DAEMON -- \
-		$DAEMON_ARGS &
+		$DAEMON_ARGS >> /var/log/wlgb/out.log 2>> /var/log/err.log &
 	echo "WriteLatex-Git Bridge started."
 	echo "WriteLatex-Git Bridge started."
 	return 0
 	return 0
 	# Add code here, if necessary, that waits for the process to be ready
 	# Add code here, if necessary, that waits for the process to be ready