Skip to content

Instantly share code, notes, and snippets.

@walice
Created March 13, 2025 02:47
Show Gist options
  • Select an option

  • Save walice/76a6cfae2051de24b47ba306d95bee52 to your computer and use it in GitHub Desktop.

Select an option

Save walice/76a6cfae2051de24b47ba306d95bee52 to your computer and use it in GitHub Desktop.
Configuration file needed to run JupyterHub as a service. The file should be placed in `/etc/systemd/system/jupyterhub.service`.
[Unit]
Description=JupyterHub Service
After=network.target
[Service]
User=root
ExecStart=/usr/local/bin/jupyterhub -f /etc/jupyterhub/jupyterhub_config.py
WorkingDirectory=/root
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment