Installation sends HUP to PID 1, causing docker containers with bash as PID 1 to stop

Bug #1371290 reported by Trevor Joynson on 2014-09-18
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
runit (Ubuntu)
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.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers