Skip to content

Instantly share code, notes, and snippets.

@mtbdeano
Created January 28, 2015 14:39
Show Gist options
  • Save mtbdeano/dd0b31f44aef71e56d97 to your computer and use it in GitHub Desktop.
Save mtbdeano/dd0b31f44aef71e56d97 to your computer and use it in GitHub Desktop.
ubuntu 14.04 IPython upstart script
description "IPython server, after installing ipython and dependencies into /home/ubuntu/.ipython, setup a system daemon to run"
pre-start script
export HOME=/home/ubuntu
end script
script
exec sudo /usr/local/bin/ipython notebook --ipython-dir=/home/ubuntu/.ipython --profile=notebook --pylab=inline --no-browser
end script
start on filesystem and net-device-up IFACE!=lo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment