[Unit] Description=JupyterHub After=network.target [Service] Type=simple ExecStart=/opt/jupyterhub/venv/bin/jupyterhub -f /opt/jupyterhub/config.py WorkingDirectory=/opt/jupyterhub User=<%= @owner %> Group=<%= @group %> Environment="PATH=/opt/jupyterhub/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" Restart=always [Install] WantedBy=multi-user.target