diff --git a/tljh-plasma/tljh_plasma/__init__.py b/tljh-plasma/tljh_plasma/__init__.py index 8ac4abd..ff067bb 100644 --- a/tljh-plasma/tljh_plasma/__init__.py +++ b/tljh-plasma/tljh_plasma/__init__.py @@ -124,6 +124,10 @@ def tljh_custom_jupyterhub_config(c, tljh_config_file=CONFIG_FILE): # set the default cpu and memory limits c.PlasmaSpawner.args = ["--ResourceUseDisplay.track_cpu_percent=True"] + # prevent PID 1 running in the Docker container to stop when child processes are killed + # see https://github.com/plasmabio/plasma/issues/191 for more info + c.PlasmaSpawner.extra_host_config = {'init': True} + # register Cockpit as a service if active if check_service_active("cockpit"): c.JupyterHub.services.append(