Concept Flow - Log rotation script
Start script
Check if log file exists
Yes
Check log file size > limit?
No→Exit script
Yes
Rename current log file to backup
Create new empty log file
Exit script
The script checks if the log file exists and is too big, then renames it and creates a new empty log file.