Deepak Nagaraj
  • Home
  • Blog
  • Tech
  • Etc

Freebsd


Log rotation, no code change needed

 Posted on January 24, 2017  |  4 minutes

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]
freebsd  syslog  logrotate  newsyslog 

Resetting a TCP connection and SO_LINGER

 Posted on October 21, 2016  |  12 minutes

Can you quickly close a TCP connection in your program by sending a reset (“RST”) packet?

[Read More]
tcp  freebsd  networking 

ps | grep is broken on FreeBSD

 Posted on October 10, 2016  |  2 minutes

It is true. Even on the latest FreeBSD 11.0 (I checked the source tree).

[Read More]
ps  grep  freebsd  shell 

Rotating the log makes it empty

 Posted on July 29, 2016  |  3 minutes

If you don’t do log rotation right, you may have a full hard drive and a ghost file.

[Read More]
logrotate  syslog  freebsd 

You got too many open files

 Posted on May 21, 2016  |  4 minutes

This is a tale about a hopelessly bad error message.

[Read More]
python  ansible  freebsd  posix  ipc  semaphores 

Deepak Nagaraj  • © 2000 - 2025

Hugo v0.123.0 powered  •  Theme Beautiful Hugo adapted from Beautiful Jekyll