Skip to content

Instantly share code, notes, and snippets.

@Kevintso
Created December 25, 2017 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kevintso/9c7e7e47e17b3d7f879a88a6075076b4 to your computer and use it in GitHub Desktop.
Save Kevintso/9c7e7e47e17b3d7f879a88a6075076b4 to your computer and use it in GitHub Desktop.
jupyter.service
[init]
Description=Jupyter tensorflow_p36
After=network.target
[Service]
Tpye=simple
PIDFile=/run/jupyter.pid
WorkingDirectory=/home/ubuntu
#EnvironmentFile=/home/ubuntu/anaconda3/envs/tensorflow_p36/bin/jupyter-notebook
ExecStart=/home/ubuntu/anaconda3/envs/tensorflow_p36/bin/jupyter-notebook --config=/home/ubuntu/.jupyter/jupyter_notebook_config.py
#ExecStart=/usr/local/bin/jupyter-notebook --config=/home/ubuntu/.jupyter/jupyter_notebook_config.py
User=ubuntu
Group=ubuntu
#ExecStop=/usr/bin/pkill notebook
#KillMode=process
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment