Extract a functin to wait for update of the syslog file.