AC::Daemon - daemon program utility functions.
use AC::Daemon; use strict; initlog( 'program', 'local5' ); daemonize( 5, 'program', \@ARGV ) unless $opt{foreground}; verbose( 'starting.' ); run_and_watch( $opt{foreground}, \&myfunction ); exit;
To install AC::DC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AC::DC
CPAN shell
perl -MCPAN -e shell install AC::DC
For more information on module installation, please visit the detailed CPAN module installation guide.