I've been following the explanation in run a perl script as a daemon. I would like to create the pid_file
within the perl script. After going through the documentation I was sure that the following piece of code would do it:
use Proc::Daemon;
Proc::Daemon::Init({ pid_file => "/var/run/theprocess.pid"} );
To make a long story short. Id didn't work. I've also tried with the Proc::Daemon->new()
operator and it didn't work either. What could I be missing?