From 19298ced32414328494218cdace73a3b78165aec Mon Sep 17 00:00:00 2001 From: "Guo, Jade" Date: Tue, 7 May 2024 15:13:46 +0800 Subject: [PATCH] Revert "Periodically update symbollink timestamp" This reverts commit d5609dd46c5bb90cbf794f6e2c6a07c3c31aa5e2, which may cause a regression. Tracked-On: OAM-118247 Signed-off-by: Guo, Jade --- log_service/aplog.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/log_service/aplog.sh b/log_service/aplog.sh index fc7245a..dc7393c 100755 --- a/log_service/aplog.sh +++ b/log_service/aplog.sh @@ -46,9 +46,7 @@ start_link() { i=$((i+1)) N=$($VENDOR_PRINTF "%0"$APLOG_BIT"d" $i) echo "vendor.aplog: create aplog.$N" - for j in $(seq -f "%03g" 1 $i); do - touch -h -r "$LOGCAT_FILE_PATH$j" "$APLOG_FILE_PATH$j" - done + [ $i -eq $APLOG_LIMIT ] && exit 0 if [ -f $LOGCAT_FILE_PATH$N ]; then if [ ! -h $APLOG_FILE_PATH$N ]; then $LINK_TOOL -s $LOGCAT_FILE_PATH$N $APLOG_FILE_PATH$N