diff --git a/tljh/configurer.py b/tljh/configurer.py index 8783b43..245e286 100644 --- a/tljh/configurer.py +++ b/tljh/configurer.py @@ -235,7 +235,9 @@ def set_cull_idle_service(c, config): def update_services(c, config): - c.JupyterHub.services.append(set_cull_idle_service(c, config)) + c.JupyterHub.services = [] + if config['services']['cull']['enabled']: + c.JupyterHub.services.append(set_cull_idle_service(c, config)) def _merge_dictionaries(a, b, path=None, update=True): diff --git a/tljh/jupyterhub_config.py b/tljh/jupyterhub_config.py index 9525bc7..7f11bfa 100644 --- a/tljh/jupyterhub_config.py +++ b/tljh/jupyterhub_config.py @@ -44,8 +44,6 @@ c.JupyterHub.cleanup_servers = False # Use a high port so users can try this on machines with a JupyterHub already present c.JupyterHub.hub_port = 15001 -c.JupyterHub.services = [] - c.TraefikTomlProxy.should_start = False dynamic_conf_file_path = os.path.join(INSTALL_PREFIX, 'state', 'rules.toml')