-
-
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
This file contains 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
# 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