xtpu2 has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Proc::Daemon vs daemon shell command
by morgon (Priest) on May 21, 2014 at 16:04 UTC |