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

allow convox-env to pass through signals #2465

Closed
wants to merge 1 commit into from
Closed

allow convox-env to pass through signals #2465

wants to merge 1 commit into from

Conversation

robinjoseph08
Copy link
Contributor

Make convox-env forward signals correctly to the wrapped command. Without this, if ECS sends a SIGTERM to your container, convox-env would get the signal but wouldn't give it to the CMD, which means that your application wouldn't be able to gracefully shutdown.

I'm still fairly new to golang, so any and all feedback would be appreciated!

@ddollar
Copy link
Contributor

ddollar commented Jan 25, 2018

Nice work, thanks!

fmt.Fprintf(os.Stderr, "ERROR: %s\n", err)
os.Exit(1)
}

os.Exit(0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this exit necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope, it should just exit cleanly if it gets to this point. good call, will remove

@ddollar ddollar modified the milestone: 2017012502 Jan 26, 2018
@ddollar
Copy link
Contributor

ddollar commented Jan 26, 2018

Had to make a quick tweak to convox-env, can you please rebase this and I'll get it in the next release.

@ddollar
Copy link
Contributor

ddollar commented Jan 26, 2018

Here's the conflicting PR for reference: #2467

@robinjoseph08
Copy link
Contributor Author

@ddollar updated!

@ddollar ddollar added this to the 20180126 milestone Jan 26, 2018
ddollar added a commit that referenced this pull request Jan 26, 2018
@ddollar ddollar mentioned this pull request Jan 26, 2018
16 tasks
@robinjoseph08 robinjoseph08 deleted the convox-env-signals branch January 27, 2018 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants