2.1. Common Approaches to Managing Daemons
By managing a daemon, we mean configuring the daemon, collecting statistics from it, and being able to view its current status. Most Linux daemons use ASCII text files for such communication, but there are other options for you to consider when building your daemon. The next few sections will describe various daemon-management methods and their pros and cons.
2.1.1. File-Based Management
Daemons are commonly managed or monitored through a few configuration files that control their run-time parameters, status, and logging. For example, the DHCP daemon, dhcpd, is controlled by the /etc/dhcpd.conf configuration file; its status is displayed in /var/state/dhcp/dhcpd.leases; its start-up script is in /etc/rc.d/init.d/dhcpd; ...