Skip to content

Instantly share code, notes, and snippets.

@whophil
Last active August 18, 2018 05:15
Show Gist options
  • Save whophil/49467ccdd5081d164d37 to your computer and use it in GitHub Desktop.
Save whophil/49467ccdd5081d164d37 to your computer and use it in GitHub Desktop.
Upstart file (Ubuntu) for Jupyter / IPython notebook
start on filesystem or runlevel [2345]
stop on shutdown
description "Jupyter / IPython Notebook Upstart script"
script
export HOME="/home/phil/Notebooks"; cd $HOME
echo $$ > /var/run/ipython_start.pid
exec su -s /bin/sh -c 'exec "$0" "$@"' phil -- /home/phil/Enthought/Canopy_64bit/User/bin/jupyter-notebook --config='/home/phil/.jupyter/jupyter_notebook_config.py'
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment