Skip to content

Instantly share code, notes, and snippets.

@timotta
Created April 25, 2019 17:06
Show Gist options
  • Save timotta/b750ce37ea08902cf0f45101beb650f9 to your computer and use it in GitHub Desktop.
Save timotta/b750ce37ea08902cf0f45101beb650f9 to your computer and use it in GitHub Desktop.
[Unit]
Description=Jupyter Notebook
[Service]
Type=simple
PIDFile=/run/jupyter.pid
# Step 1 and Step 2 details are here..
# ------------------------------------
ExecStart=/usr/local/bin/jupyter notebook --ip=0.0.0.0 --no-browser
User=ubuntu
Group=ubuntu
WorkingDirectory=/home/ubuntu
Restart=always
RestartSec=10
#KillMode=mixed
[Install]
WantedBy=multi-user.target
@timotta
Copy link
Author

timotta commented Oct 27, 2019

sudo vim /lib/systemd/system/jupyter.service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment