in reply to Daemon possessed perl

Others have suggested good solutions, but in the interests of completeness, I have found Net::Daemon to be flexible (and well documented).