Skip to content

Instantly share code, notes, and snippets.

@doowon
Created July 22, 2016 20:14
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save doowon/6911a3cc7cac89a6655931b925f74627 to your computer and use it in GitHub Desktop.
Save doowon/6911a3cc7cac89a6655931b925f74627 to your computer and use it in GitHub Desktop.
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
Copy link

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