Skip to content

Commit

Permalink
Periodically update symbollink timestamp
Browse files Browse the repository at this point in the history
Align /data/vendor/logs/aplog with /data/misc/logd

Tracked-On: OAM-116619
Signed-off-by: Guo, Jade <[email protected]>
  • Loading branch information
jiaxuan-guo committed Apr 15, 2024
1 parent 43aaf13 commit f8f5f30
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion log_service/aplog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ start_link() {
i=$((i+1))
N=$($VENDOR_PRINTF "%0"$APLOG_BIT"d" $i)
echo "vendor.aplog: create aplog.$N"
[ $i -eq $APLOG_LIMIT ] && exit 0
for j in $(seq -f "%03g" 1 $i); do
touch -h -r "$LOGCAT_FILE_PATH$j" "$APLOG_FILE_PATH$j"
done
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
Expand Down

0 comments on commit f8f5f30

Please sign in to comment.