From 570802ba74e79d09b4bddda37985f8fb0669ce4b Mon Sep 17 00:00:00 2001 From: yuvipanda Date: Fri, 29 Jun 2018 01:24:30 -0700 Subject: [PATCH] Simplify template used for generating systemd unit names --- tljh/jupyterhub_config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tljh/jupyterhub_config.py b/tljh/jupyterhub_config.py index e3a9a69..9abb4c5 100644 --- a/tljh/jupyterhub_config.py +++ b/tljh/jupyterhub_config.py @@ -34,5 +34,7 @@ c.ConfigurableHTTPProxy.api_url = 'http://127.0.0.1:15002' c.SystemdSpawner.extra_paths = [os.path.join(USER_ENV_PREFIX, 'bin')] c.SystemdSpawner.default_shell = '/bin/bash' +# Drop the '-singleuser' suffix present in the default template +c.SystemdSpawner.unit_name_template = 'jupyter-{USERNAME}' configurer.apply_yaml_config(os.path.join(INSTALL_PREFIX, 'config.yaml'), c)