doorman icon indicating copy to clipboard operation
doorman copied to clipboard

Greater control over shell command that is executed

Open frankmullenger opened this issue 6 years ago • 0 comments

There is some ability to alter aspects of the shell command that is executed here: https://github.com/asyncphp/doorman/blob/master/src/Manager/ProcessManager.php#L132

However, we have found a need to alter the command to tag the output and send it to syslog e.g: "{$binary} {$worker} %s 2>&1 | logger -t sometag -s {$stderr} & echo $!"

With the current API we're unable to achieve this without taking a copy of the ProcessManager class (as it is designated as final).

It would be great to either be able to create a subclass ProcessManager and make amendments or alter the command via an expanded API.

frankmullenger avatar Apr 16 '18 22:04 frankmullenger