NAME

Net::ISC::DHCPd::Process - Skeleton process class

SYNOPSIS

package MyProcessRole;
use Moose::Role;
use Net::ISC::DHCPd::Process

has program => ( is => 'rw' );
has args => ( is => 'rw' );
has user => ( is => 'rw' );
has group => ( is => 'rw' );

after BUILDALL => sub {
    my $self = shift;
    my $args = shift;

    if($args->{'start'}) {
        # spawn process
    }
};

sub kill {
    # kill process
}

MyProcessRole->meta->apply( Net::ISC::DHCPd::Process->meta );

1;

DESCRIPTION

This module is subject for a major rewrite. Patches and comments are welcome!

METHODS

new

$self = $class->new($args)
$self = $class->new(%args)

Spawns a dhcpd process, running in the background.

Args:

program
args
user
group
start

pid

$pid = $self->pid

kill

$bool = $self->kill($signal)

COPYRIGHT & LICENSE

AUTHOR

See Net::ISC::DHCPd.