This post shows you how to rotate old logs from your application. There is no change to application code. There is no specialized logging library or framework needed. It works for any language, on standard Unix platform.
[Read More]Resetting a TCP connection and SO_LINGER
Can you quickly close a TCP connection in your program by sending a reset (“RST”) packet?
[Read More]ps | grep is broken on FreeBSD
It is true. Even on the latest FreeBSD 11.0 (I checked the source tree).
[Read More]Rotating the log makes it empty
If you don’t do log rotation right, you may have a full hard drive and a ghost file.
[Read More]You got too many open files
This is a tale about a hopelessly bad error message.
[Read More]