From 4b1281c62d0b88543eedb0499c84f8bdbc6cf85a Mon Sep 17 00:00:00 2001 From: George Hunt Date: Wed, 10 Mar 2021 03:19:17 +0000 Subject: [PATCH] change systemd to more specifially use the venv --- roles/jupyter/templates/jupyter.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/jupyter/templates/jupyter.service b/roles/jupyter/templates/jupyter.service index f9e5aa798..8ce535369 100644 --- a/roles/jupyter/templates/jupyter.service +++ b/roles/jupyter/templates/jupyter.service @@ -5,7 +5,7 @@ After=syslog.target network.target [Service] User=root Environment="PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:{{ jupyter_venv }}/bin" -ExecStart={{ jupyter_venv }}/bin/jupyterhub -f {{ jupyter_venv }}/etc/jupyterhub/jupyterhub_config.py +ExecStart={{ jupyter_venv }}/bin/python3 -m jupyterhub -f {{ jupyter_venv }}/etc/jupyterhub/jupyterhub_config.py [Install] WantedBy=multi-user.target