Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Greater control over shell command that is executed #23

Open
frankmullenger opened this issue Apr 16, 2018 · 0 comments
Open

Greater control over shell command that is executed #23

frankmullenger opened this issue Apr 16, 2018 · 0 comments

Comments

@frankmullenger
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant