Daemonizing and Upstart

When creating command-line applications, the user is usually present at the terminal to provide commands to the application and read its output. This is called interactive mode. But sometimes, you want to start a long-running program in the background, so it runs while you’re not present. This is called daemon mode, and the programs themselves […]

Continue reading →

A Linux LVM primer

Linux’s Logical Volume Manager, or lvm, is a method for dividing a physical disk (or physical volume, PV) into blocks (or physical extents, PE). These blocks can be assigned to partitions (or logical volumes, LV). The process of assigning PE‘s to a LV creates a map for translating PE‘s to LE‘s, called the allocation map. […]

Continue reading →