NAME

App::EventStreamr::Roles::ProcessControl - A process role

VERSION

version 0.5

SYNOPSIS

This is a role that provides 'start', 'stop' and 'running' methods.

DESCRIPTION

This is a Role that can be consumed to provide process operations used throughout EventStreamr.

It requires a 'cmd' attribute and will utilise an optional 'cmd_regex' if one exists.

METHODS

start

  $proc->start;

Forks the command and returns.

stop

  $proc->stop;

Stops the running process if it is found.

running

  $proc->running;

Returns 1 if running, 0 if not.

AUTHOR

Leon Wright < techman@cpan.org >

COPYRIGHT AND LICENSE

This software is Copyright (c) 2014 by Leon Wright.

This is free software, licensed under:

  The GNU Affero General Public License, Version 3, November 2007