Proc::Daemon provides a method for a Perl script to run as a Unix daemon process.