App-Daemon
view release on metacpan or search on metacpan
If you want to create a daemon without the fancy command line parsing
and PID file checking functions, use
use App::Daemon qw(detach);
detach();
# ... some code here
This will fork a child, terminate the parent and detach the child from
the terminal. Issued from the command line, the program above will
continue to run the code following the detach() call but return to the
shell prompt immediately.
=head1 AUTHOR
2008, Mike Schilli <cpan@perlmeister.com>
=head1 LICENSE
Copyright 2008-2012 by Mike Schilli, all rights reserved.
This program is free software, you can redistribute it and/or
modify it under the same terms as Perl itself.
If you want to create a daemon without the fancy command line parsing
and PID file checking functions, use
use App::Daemon qw(detach);
detach();
# ... some code here
This will fork a child, terminate the parent and detach the child from
the terminal. Issued from the command line, the program above will
continue to run the code following the detach() call but return to the
shell prompt immediately.
AUTHOR
2008, Mike Schilli <cpan@perlmeister.com>
LICENSE
Copyright 2008-2012 by Mike Schilli, all rights reserved. This program
is free software, you can redistribute it and/or modify it under the
same terms as Perl itself.
( run in 0.897 second using v1.01-cache-2.11-cpan-6aa56a78535 )