Skip to content

Instantly share code, notes, and snippets.

@ad1729
Forked from whophil/jupyter.service
Created October 18, 2017 16:50
Show Gist options
  • Save ad1729/a97eab55bf249cfbda72da6cb8e47ddc to your computer and use it in GitHub Desktop.
Save ad1729/a97eab55bf249cfbda72da6cb8e47ddc to your computer and use it in GitHub Desktop.
A systemd script for running a Jupyter notebook server.
# After Ubuntu 16.04, Systemd becomes the default.
# It is simpler than https://gist.github.com/Doowon/38910829898a6624ce4ed554f082c4dd
[Unit]
Description=Jupyter Notebook
[Service]
Type=simple
PIDFile=/run/jupyter.pid
ExecStart=/home/phil/Enthought/Canopy_64bit/User/bin/jupyter-notebook --config=/home/phil/.jupyter/jupyter_notebook_config.py
User=phil
Group=phil
WorkingDirectory=/home/phil/Notebooks/
Restart=always
RestartSec=10
#KillMode=mixed
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment