mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Start JupyterHub / CHP when system starts
This commit is contained in:
@@ -46,6 +46,10 @@ def ensure_jupyterhub_service(prefix):
|
||||
# If JupyterHub is running, we want to restart it.
|
||||
systemd.restart_service('jupyterhub')
|
||||
|
||||
# Mark JupyterHub & CHP to start at boot ime
|
||||
systemd.enable_service('jupyterhub')
|
||||
systemd.enable_service('configurable-http-proxy')
|
||||
|
||||
|
||||
def ensure_jupyterhub_package(prefix):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user