in reply to Writing Daemons

And...just in case you missed it: perldoc -q daemon has the basic recipe for writing a daemon.