Skip to content

Instantly share code, notes, and snippets.

@kirk86
Forked from tinkerbotfoo/ipython-notebook.conf
Created October 24, 2015 00:43
Show Gist options
  • Save kirk86/9316513771eba871423e to your computer and use it in GitHub Desktop.
Save kirk86/9316513771eba871423e to your computer and use it in GitHub Desktop.
ipython upstart script - Ubuntu 12.04 Precise. Put this file in the /etc/init folder to start ipython upon system booting
# IPython Notebook Launcher
# Adopted from the Rstudio upstart script
#
#
# upstart docs: http://upstart.ubuntu.com/getting-started.html
# http://manpages.ubuntu.com/manpages/karmic/man5/init.5.html
#
# (note that embedding a script and pre-start and post-start actions are supported)
#
start on runlevel [2345]
stop on runlevel [!2345]
expect fork
respawn
pre-start script
# Make sure our AppArmor profile is loaded on boot
# (see: https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/577445)
# /usr/lib/rstudio-server/extras/apparmor/apparmor-profile-load rstudio-server
end script
# unlimited size for core dumps
limit core unlimited unlimited
# run the server
#exec start-stop-daemon --start -c vagrant --exec /usr/bin/ipython notebook
exec /usr/bin/ipython notebook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment