-
Notifications
You must be signed in to change notification settings - Fork 37
SIGHUP seems to cause initd to exit #58
Comments
We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: https://www.pivotaltracker.com/story/show/111811496. |
In docker the user process and the init process (pid 1) are the same. In garden - because we support multiple user processes in a container with their own lifecycle - we run our own init process in the container. This is why it is possible to trap the signal in your docker app but not in garden: in garden your app is not PID 1. We could have initd (which is the small process we run as pid 1) trap SIGHUP easily enough, but this might be a bit of a sledgehammer solution. An alternative you could try would be to create your own mini-"container" with its own PID namespace inside the concourse container. You can do this quite easily just by running your application under |
We've one ahead and worked around the issue by using Feel free to close if you won't be making any initd changes around this. |
Thanks. We're unlikely to address this any time soon, especially considering that we're now working on Guardian, so I'll close this. |
BOSH team is trying to build stemcells in a concourse task and one of the steps is installing the
runit
package into a chroot'd filesystem. One of the postinst scripts therunit
package executes iskill -s HUP 1
. In our concourse task, this is causing our container to exit and we can't find a way to avoid that. In our Docker test environment we were able totrap '' HUP
to ignore it, but that's not working here.Is this intentional, and can you advise a workaround?
In our
fly execute ...
, it ends with the following, for what it's worth...We can also reproduce by doing fly execute with an empty container, hijacking in and running
kill -s HUP 1
from the shell.Thanks!
The text was updated successfully, but these errors were encountered: