mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Mark systemd dependencies between chp / jupyterhub
- Requires= makes success of CHP a hard dependency for JupyterHub - After= waits for CHP to start before jupyterhub starts - Start CHP after networking is ready (properly)
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
# Template file for Configurable HTTP Proxy systemd service
|
# Template file for Configurable HTTP Proxy systemd service
|
||||||
# Uses simple string.format() for 'templating'
|
# Uses simple string.format() for 'templating'
|
||||||
[Unit]
|
[Unit]
|
||||||
Wants=network-online.target
|
# Wait for network stack to be fully up before starting CHP
|
||||||
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=root
|
User=root
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
# Template file for JupyterHub systemd service
|
# Template file for JupyterHub systemd service
|
||||||
# Uses simple string.format() for 'templating'
|
# Uses simple string.format() for 'templating'
|
||||||
[Unit]
|
[Unit]
|
||||||
Wants=configurable-http-proxy.service
|
# CHP must have successfully started *before* we launch JupyterHub
|
||||||
|
Requires=configurable-http-proxy.service
|
||||||
|
After=configurable-http-proxy.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=root
|
User=root
|
||||||
|
|||||||
Reference in New Issue
Block a user