Hello,
I'm trying to write some daemon application using Proc::Daemon and
Proc::PID::File modules. But I've encountered that Proc::PID::File
crashes when I'm trying to put lockfile to a non-default location. E.g.
the part of code:
my $pid = Proc::PID::File->new(dir => '/var/run/subdirectory');
if ($pid->running()) {
die "Already running";
}
fails with the message "Attempt to bless into a reference at
/usr/share/perl5/site_perl/Proc/PID/File.pm line 144."
I may use default location, but it limits the ability of the daemon to
be run only by root user. Can you help me?
--
Regards.
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/