Reading view

There are new articles available, click to refresh the page.

About Me

Stefano Marinelli My name is Stefano Marinelli. I was born in 1979 and graduated with a degree in Computer Science from the University of Bologna in 2003. I founded and ran a small IT company focused on advanced services such as server management, virtualization, hosting, and custom-tailored solutions. Recently, I became the CEO of Prodottoinrete Group SRL, and DragasIT is now a part of this group. My main IT interests include FreeBSD, GNU/Linux, all the BSDs in general, Unix-like systems, embedded systems, high availability, and fault tolerance.

FreeBSD on Raspberry PI - enable and use Watchdog

Watchdog devices are important to be sure our servers are working. Unfortunately, watchdog daemon seem to crash if enabled on Rasbperry PI. The problem is that our Pis have a strange watchdog hardware device and needs to be petted quite often. Because of this, running the watchdog daemon without some special flags won’t work as standard FreeBSD petting time is too high. All you need to do is enable watchdog and add a flags line with some specfic options.

Rotating Docker log files

Sometimes containers log a lot of things, and the logfile can become huge. This happens because containers aren’t supposed to run for a long time but to be created/disposed regularly. Here’s how to fix this. You have to instruct Docker, at launch, and tell how much you want the log file to grow before rotating and how many old logs you want to keep. For example, --log-opt max-size=50m --log-opt max-file=5
❌