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

Bug #1371290 reported by Trevor Joynson
6
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
Revision history for this message
Lorenzo Puliti (plorenzo) wrote :

> In runit.postinit, kill -s HUP 1 is executed.

This is no longer the case at least since 2.1.2-9.2ubuntu1 (Bionic)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.