-
-
Save baoyunfan/8106c266a7864ded08d9896c9ad76c3d to your computer and use it in GitHub Desktop.
Revisions
-
whophil revised this gist
Aug 27, 2016 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Description=Jupyter Notebook [Service] Type=simple PIDFile=/run/jupyter.pid ExecStart=/home/phil/Enthought/Canopy_64bit/User/bin/jupyter-notebook --config=/home/phil/.jupyter/jupyter_notebook_config.py User=phil Group=phil WorkingDirectory=/home/phil/Notebooks/ @@ -16,4 +16,4 @@ RestartSec=10 #KillMode=mixed [Install] WantedBy=multi-user.target -
whophil revised this gist
Aug 27, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,7 +10,7 @@ PIDFile=/run/jupyter.pid ExecStart=/usr/local/bin/jupyter notebook --no-browser --config=/home/phil/.jupyter/jupyter_notebook_config.py User=phil Group=phil WorkingDirectory=/home/phil/Notebooks/ Restart=always RestartSec=10 #KillMode=mixed -
whophil revised this gist
Aug 14, 2016 . No changes.There are no files selected for viewing
-
whophil revised this gist
Aug 14, 2016 . 1 changed file with 0 additions and 15 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,15 +0,0 @@ -
whophil renamed this gist
Aug 14, 2016 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
whophil revised this gist
Aug 14, 2016 . 2 changed files with 20 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ Following the instructions of https://www.digitalocean.com/community/tutorials/how-to-configure-a-linux-service-to-start-automatically-after-a-crash-or-reboot-part-1-practical-examples, place this file in: `/usr/lib/systemd/system/jupyter.service` Then execute ```shell sudo systemctl enable jupyter.service ``` Reload the systemd daemona and restar the service ```shell sudo systemctl daemon-reload sudo systemctl restart jupyter.service ``` This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,16 +1,16 @@ # After Ubuntu 16.04, Systemd becomes the default. # It is simpler 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/phil/.jupyter/jupyter_notebook_config.py User=phil Group=phil WorkingDirectory=/home/Notebooks/ Restart=always RestartSec=10 #KillMode=mixed -
doowon created this gist
Jul 22, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ # 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