Skip to content

Instantly share code, notes, and snippets.

@MilesMcBain
Forked from whophil/ipython-notebook.conf
Last active December 12, 2017 16:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save MilesMcBain/647df503e0f65b54286abd9fa51b9b45 to your computer and use it in GitHub Desktop.
Save MilesMcBain/647df503e0f65b54286abd9fa51b9b45 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/ubuntu/"; cd $HOME
echo $$ > /var/run/ipython_start.pid
exec su -s /bin/sh -c 'exec "$0" "$@"' ubuntu -- /home/ubuntu/anaconda2/bin/jupyter-notebook --config='/home/ubuntu/.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