I was trying to find some info about Proc::Daemon thingy, but there is no much about it. I want one of my Perl scripts to run as a daemon since I need to capture and parse telephone calls data coming on the socket. As far as I understand, Proc::Daemon detaches STDOUT, and STDERR from the terminal. What about STDIN? What I mean is if I use Proc::Daemon, will STDIN still be listening on the socket? I am new at Perl, and all advices will be appreciated.
Also, should I use separate files for the main code and startup script (the one with Proc::Daemon)? Thank you.