Skip to content

Instantly share code, notes, and snippets.

@puilp0502
Created November 24, 2016 15:31
Show Gist options
  • Save puilp0502/72f5e55f2d4e8f983fa0e337819b1b5a to your computer and use it in GitHub Desktop.
Save puilp0502/72f5e55f2d4e8f983fa0e337819b1b5a to your computer and use it in GitHub Desktop.
systemd service file for Jupyterhub
#Assuming you followed the guide at https://github.com/jupyterhub/jupyterhub/wiki/Using-sudo-to-run-JupyterHub-without-root-privileges
[Unit]
Description=JupyterHub Server
[Service]
#replace with your jupyterhub running user
User=rhea
Group=rhea
WorkingDirectory=/etc/jupyterhub/
ExecStart=/usr/local/bin/jupyterhub --JupyterHub.spawner_class=sudospawner.SudoSpawner
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment