Installation sends HUP to PID 1, causing docker containers with bash as PID 1 to stop
Bug #1371290 reported by
Trevor Joynson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
runit (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
In runit.postinit, kill -s HUP 1 is executed.
This is an issue in the case of a docker container where you are running bash as PID 1. When bash is sent HUP, it will exit, making installation of runit impossible.
As a workaround I've made my container have an entrypoint of a bash script that does 'trap ":" HUP' but that's quite a hack to me.
description: | updated |
description: | updated |
description: | updated |
To post a comment you must log in.
> In runit.postinit, kill -s HUP 1 is executed.
This is no longer the case at least since 2.1.2-9.2ubuntu1 (Bionic)