Skip to content

Instantly share code, notes, and snippets.

@tinkerbotfoo
Created August 27, 2013 01:27

Revisions

  1. tinkerbotfoo created this gist Aug 27, 2013.
    29 changes: 29 additions & 0 deletions ipython-notebook.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    # 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