From 5abf657bdf3cce1ce7f43733932318a02c68b119 Mon Sep 17 00:00:00 2001 From: Min RK Date: Fri, 23 Aug 2024 08:32:24 +0200 Subject: [PATCH] fix `-m` invocation of jupyterhub -m jupyterhub.app results in multiple JupyterHub classes being defined and jupyterhub.app.JupyterHub never being instantiated --- docs/howto/admin/systemd.md | 2 +- tljh/systemd-units/jupyterhub.service | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/howto/admin/systemd.md b/docs/howto/admin/systemd.md index 468cea7..f1716d9 100644 --- a/docs/howto/admin/systemd.md +++ b/docs/howto/admin/systemd.md @@ -23,7 +23,7 @@ PrivateDevices=yes ProtectKernelTunables=yes ProtectKernelModules=yes Environment=TLJH_INSTALL_PREFIX=/opt/tljh -ExecStart=/opt/tljh/hub/bin/python3 -m jupyterhub.app -f jupyterhub_config.py --upgrade-db +ExecStart=/opt/tljh/hub/bin/python3 -m jupyterhub -f jupyterhub_config.py --upgrade-db [Install] WantedBy=multi-user.target diff --git a/tljh/systemd-units/jupyterhub.service b/tljh/systemd-units/jupyterhub.service index 0648830..0fb6a4c 100644 --- a/tljh/systemd-units/jupyterhub.service +++ b/tljh/systemd-units/jupyterhub.service @@ -18,7 +18,7 @@ Environment=TLJH_INSTALL_PREFIX={install_prefix} Environment=PATH={install_prefix}/hub/bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin # Run upgrade-db before starting, in case Hub version has changed # This is a no-op when no db exists or no upgrades are needed -ExecStart={python_interpreter_path} -m jupyterhub.app -f {jupyterhub_config_path} --upgrade-db +ExecStart={python_interpreter_path} -m jupyterhub -f {jupyterhub_config_path} --upgrade-db [Install] # Start service when system boots