This is possibly (probably) a stupid question.
Does use Proc::Daemon; Proc::Daemon::Init; do essentially the same thing as the shell command daemon -- perl somescript.pl? What is the difference?
Edited to Add: I need to run a script as a daemon, and I'm trying to figure out whether it's better practice to have the script handle things such as forking, changing user, setting up the PID file, etc., or to have the script just do the things it's supposed to do, and use existing system tools to do the other stuff (by setting up an init.d script). If that makes sense.
In reply to Proc::Daemon vs daemon shell command by xtpu2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |