-
-
Save kpykc/fbb955a48767768ea69a to your computer and use it in GitHub Desktop.
Upstart file (Ubuntu) for Jupyter / IPython notebook
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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