in reply to Daemon possessed perl

My biggest question is how do you get the program to detach from the terminal?

Use ioctl() or POSIX::setsid() and re-open your file descriptors.

If you really want to daemonize your process, you might also want to chroot, change your working directory to '/', and change your umask.

Proc::Daemon will do most of that for you, but if you want to chroot() you'll have to do that yourself, I think.

-sauoq
"My two cents aren't worth a dime.";