Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A systemd script for jupyter
# After Ubuntu 16.04, Systemd becomes the default.
# It is simler than https://gist.github.com/Doowon/38910829898a6624ce4ed554f082c4dd
[Unit]
Description=Jupyter Notebook
[Service]
Type=simple
PIDFile=/run/jupyter.pid
ExecStart=/usr/local/bin/jupyter notebook --no-browser --config=/home/jail/home/notebook/.jupyter/jupyter_notebook_config.py
User=notebook
Group=notebook
WorkingDirectory=/home/jail/home/notebook/workdir
Restart=always
RestartSec=10
#KillMode=mixed
[Install]
WantedBy=multi-user.target
@SahithiGunna

This comment has been minimized.

Copy link

SahithiGunna commented Oct 26, 2018

What is the ExecStop logic for the jupyter notebook?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.