Lincoln Stein covers the basics for Unix in Chapter 10, Forking Servers and the inetd Daemon, and Chapter 14, Bulletproofing Servers, in Network Programming with Perl.
There's a bit more to being a well-behaved daemon than is obvious at first glance. On page 312, Stein notes that a well-behaved daemon should:
In reply to Re: perl daemon
by dws
in thread perl daemon
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |