codeskyblue / gosuv

Deprecated!!! Process managerment writtern by golang, inspired by python-supervisor
MIT License
646 stars 181 forks source link

How to redirect child processes output to stdout? #24

Open marcioAlmada opened 7 years ago

marcioAlmada commented 7 years ago

I'm trying to use gsouv on Kubernetes. Gosuv is monitoring a service that puts log entries to stdout, but I can't find a way to make gosuv itself to redirect the output from child processes to stdout too. Is this already possible?

The web dashboard is a lifesaver BTW :+1:

codeskyblue commented 7 years ago

Glad to be your lifesaver. So you mean gosuv log itself?

marcioAlmada commented 7 years ago

Hi!

captura de tela de 2017-06-02 00-43-45

Yes, I meant to redirect all log output produced by the processes managed by gosuv (see pic above) into the gosuv stdout log. This way if you run gosuv start-server -f on a docker container, the docker engine would "see" the gosuv server log aggregated with the logs produced by the processes started through gosuv.

Whatever appears on the "Logs" web interface would appear on the container log when you docker logs some-gosuv-docker --follow. It could be a flag like gosuv start-server -f -o.

PS: Supervisor is missing this feature.

codeskyblue commented 7 years ago

How about foreman