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,8 @@
# Template file for Configurable HTTP Proxy systemd service
# Uses simple string.format() for 'templating'
[Unit]
Wants=network-online.target
# Wait for network stack to be fully up before starting CHP
After=network.target
[Service]
User=root