13 ms·
Doing that is inherently racey (as acknowledged in your man page quote), and you will lose some log data while the rotation happens if it's being written to qui
by sveiss 11y ago
Doing that is inherently racey (as acknowledged in your man page quote), and you will lose some log data while the rotation happens if it's being written to quickly enough. If you need all your log data, you can't rotate or shrink it with this style of logging, hence 'known-bad'.
- simoncion 11y agoIt is inherently racy. Noone is disputing that. But, remember that the author said: > One cannot size-cap the log file; one cannot rotate the log file; one cannot shrink the log file. It grows, as one file, forever until the dæmon is shut down. [0] Anyone with even the most basic understanding of how star-nix [1] systems handle files understands this to be an untrue statement. Take particular care to note that the author's statement was unqualified. If he had mentioned anywhere that you cannot do those things without some risk of data loss, there would be no controversy. Instead, he said -flat out- that rotating and size-capping a cat-std-whatever-to-log-file style log file is impossible. [0] http://homepage.ntlworld.com/jonathan.deboynepollard/FGA/systemd-house-of-horror/tomcat.html http://homepage.ntlworld.com/jonathan.deboynepollard/FGA/sys... [1] star-nix rather than $ASTERISKnix because I can't figure out how to escape a literal asterisk. :/