Daemonize any program with daemontools and ucspi-tcp

Daemontools and ucspi-tcp are VERY commonly used with qmail, one of the most popular email MTA programs on the net today. Once you get the hang of it, you’ll see it’s very cool for daemonizing a script. This example will be a PHP script that does very little, just echo’s what you type back at you. Just enough to get the point across that you can deamonize your script with these two tools.

Below is blow by blow instructions for installation and setup of the echo.php daemon

Read more