Daemon-Easy

 view release on metacpan or  search on metacpan

lib/Daemon/Easy.pm  view on Meta::CPAN

The execution of the daemon is controlled by checking whether 
a stopfile exists in each running loop.

The pidfile stores the pid of the running daemon. 

=head1 SYNOPSIS

    use Daemon::Easy sleep=>5, stopfile=>'stop', pidfile=>'pid', callback=>'worker';

    sub worker{
        print "i am alive\n";
    }

    run();

    in the shell:
    ./yourdaemon.pl [start stop restart status]


=head1 DESCRIPTION



( run in 0.688 second using v1.01-cache-2.11-cpan-39bf76dae61 )