From f08a1a1b101eeeabeb6f3fb97112d74c70a3846f Mon Sep 17 00:00:00 2001 From: winlin Date: Tue, 27 Oct 2020 18:00:18 +0800 Subject: [PATCH] Refine etc script to collect stderr logs --- trunk/etc/init.d/srs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/etc/init.d/srs b/trunk/etc/init.d/srs index 66409a012..371b450cb 100755 --- a/trunk/etc/init.d/srs +++ b/trunk/etc/init.d/srs @@ -68,7 +68,7 @@ start() { ok_msg "Starting SRS..." # get log file - log_file=`cd ${ROOT} && cat ${CONFIG} |grep '^log_file'| awk '{print $2}'| awk -F ';' '{print $1}'` + log_file=`cd ${ROOT} && cat ${CONFIG} |grep '^srs_log_file'| awk '{print $2}'| awk -F ';' '{print $1}'` if [[ -z $log_file ]]; then log_file=${DEFAULT_LOG_FILE}; fi # get abs path log_dir=`dirname $log_file`