You can't successfully mv the .lg file and have it work the way that you hope. Since the db is "live" the file handle is being held open by various processes which means that their messages will continue going to that file (the file name that you see in a directory listing is just a "tag" of sorts for the file, the file doesn't go away until the last process having an open handle to it closes it...).
The "tail" command with redirection will mostly work but there will be two (short) periods of time when messages might get written that will either become garbled or missed. If that doesn't bother you then go for it. (It wouldn't bother me very much.)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.