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:
yuvipanda
2018-06-27 23:41:19 -07:00
parent 582ef74a61
commit 893c54b79e
2 changed files with 5 additions and 2 deletions

View File

@@ -1,7 +1,9 @@
# Template file for JupyterHub systemd service
# Uses simple string.format() for 'templating'
[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]
User=root