[Unit] Description=JupyterHub Daemon After=network-online.target Wants=network-online.target [Service] Type=simple User=root # envirionnement vituel Environment=VIRTUAL_ENV=/var/lib/jupyterhub/venvs/py3 ExecStart=/var/lib/jupyterhub/venvs/py3/bin/python3 ${VIRTUAL_ENV}/etc/jupyter/start_jupyterhub --config=${VIRTUAL_ENV}/etc/jupyter/jupyterhub_config.py --log-level=0 KillMode=process Restart=on-failure [Install] WantedBy=multi-user.target