App::EventStreamr::Roles::ProcessControl - A process role
version 0.5
This is a role that provides 'start', 'stop' and 'running' methods.
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.
$proc->start;
Forks the command and returns.
$proc->stop;
Stops the running process if it is found.
$proc->running;
Returns 1 if running, 0 if not.
Leon Wright < techman@cpan.org >
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
To install App::EventStreamr, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::EventStreamr
CPAN shell
perl -MCPAN -e shell install App::EventStreamr
For more information on module installation, please visit the detailed CPAN module installation guide.