Skip to content

Instantly share code, notes, and snippets.

@sequeiradenzil
Created September 27, 2017 04:43
Show Gist options
  • Save sequeiradenzil/9ecab284fe7d662274701f6b2e98aec4 to your computer and use it in GitHub Desktop.
Save sequeiradenzil/9ecab284fe7d662274701f6b2e98aec4 to your computer and use it in GitHub Desktop.
Making Jupyterhub run as a service while using kdcauthenticator
##To be placed in /etc/systemd/system/jupyterhub.service
[Unit]
Description=Jupyterhub
After=syslog.target network.target
[Service]
User=root
Environment="PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
Environment=KRB5_CONFIG=/etc/krb5.conf
Environment=KRB5_KTNAME=/etc/krb5.keytab
ExecStart=/usr/local/bin/jupyterhub -f /home/ubuntu/jupyterhub_config.py
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment