App::EventStreamr::Roles::ProcessControl - A process role
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.
Forks the command and returns.
Stops the running process if it is found.
Returns 1 if running, 0 if not.
Leon Wright < email@example.com >
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