Skip to content

Commit

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

Tracked-On: OAM-117859
Signed-off-by: Guo, Jade <[email protected]>
  • Loading branch information
jiaxuan-guo authored and iViggyPrabhu committed Apr 25, 2024
1 parent 2acfe39 commit b6fe95f
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 b6fe95f

Please sign in to comment.