Skip to content

Instantly share code, notes, and snippets.

@cprakashagr
Last active June 17, 2017 12:46
Show Gist options
  • Save cprakashagr/3776fd0b5653e1baf4e60ad4e363bead to your computer and use it in GitHub Desktop.
Save cprakashagr/3776fd0b5653e1baf4e60ad4e363bead to your computer and use it in GitHub Desktop.
A simple, yet intuitive way to start the jupyter notebook as service for my local work station.
[Unit]
Description=Deep Learning Jupyter Notebook Service
[Service]
WorkingDirectory=/home/cprakashagr/Workspace
PIDFile=/run/jupyter.pid
ExecStart=/home/cprakashagr/.virtualenvs/DeepLearning/bin/jupyter-notebook --config=/home/cprakashagr/.jupyter/jupyter_notebook_config.py
User=cprakashagr
Group=cprakashagr
Restart=always
[Install]
WantedBy=multi-user.target
sudo cp runJupyterNotebookService.service /etc/systemd/system/runJupyterNotebookService.service
systemctl daemon-reload
sudo service runJupyterNotebookService start
sudo service runJupyterNotebookService status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment