Skip to content

Instantly share code, notes, and snippets.

@kpykc
Forked from whophil/ipython-notebook.conf
Last active November 22, 2015 17:27
Show Gist options
  • Save kpykc/fbb955a48767768ea69a to your computer and use it in GitHub Desktop.
Save kpykc/fbb955a48767768ea69a to your computer and use it in GitHub Desktop.
Upstart file (Ubuntu) for Jupyter / IPython notebook
# To be placed in /etc/init/ with 644 permissions
start on filesystem or runlevel [2345]
stop on shutdown
description "Jupyter / IPython Notebook Upstart script for Jetson TK-1"
script
export HOME="/home/ubuntu"; cd $HOME
export PATH=/usr/local/cuda-6.5/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-6.5/lib:$LD_LIBRARY_PATH
echo $$ > /var/run/ipython_start.pid
exec su -s /bin/sh -c 'PATH=/usr/local/cuda-6.5/bin:$PATH exec "$0" "$@"' ubuntu -- /usr/local/bin/jupyter-notebook --config='/home/ubuntu/.ipython/profile_default/ipython_notebook_config.py'
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment