Deeply appreciating your advise and sharing of wisdom I have to confess in meekness that my question apparently has not been put in a sufficiently stringent manner.
To make it clear now, the mentioned server is no Apache, and I am not in the position to change the logfile rotation procedure in this productive system :-(
I will pose some subquestions to clarify:
- 1) Is my implementation of "tail -f" neat enough? I think so.
- 2) Assuming that logfile rotation is working correctly, is the reopening of the current logfile done properly assuring no loss of data?
- 3) The real whole problem - how to manage the following possibilities:
- a) rotated logfile with altered name may still be the active, no logfile with the original name present -> No problem (see inode comment in source)
- b) at some indefinite time a new logfile with the original name becomes the active one -> Point 2
I ask for patience and balminess,
bearing in mind my own weakness.
-r