Skip to content

Instantly share code, notes, and snippets.

@laeshiny
Created August 4, 2016 09:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laeshiny/47f027a65a96db8ece004f87cad763da to your computer and use it in GitHub Desktop.
Save laeshiny/47f027a65a96db8ece004f87cad763da to your computer and use it in GitHub Desktop.
systemd service for Jupyter Notebook
[Unit]
Description=Jupyter Notebook
Requires=local-fs.target
After=local-fs.target
[Service]
ExecStart=/usr/local/bin/jupyter-notebook --ip 0.0.0.0 --notebook-dir /home/%i/apps/jupyter-notebook/
User=%i
[Install]
WantedBy=multi-user.target
@maswadkar
Copy link

Thank you so much for this code.. i spent almost 4 hours figuring out.

Requires=local-fs.target
After=local-fs.target

saved my life

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment