rt-net / jnm_jupyternotebook

Jupyter Notebooks for Jetson Nano Mouse
https://rt-net.github.io/tutorials/jnmouse/jupyter-notebook/install.html
Apache License 2.0
3 stars 3 forks source link

Update default Jupyter service name #10

Closed Tiryoh closed 3 years ago

Tiryoh commented 3 years ago

What does this implement/fix?

JupyterLabs用のサービスの名前を変更します

Does this close any currently open issues?

しません

How has this been tested?

jetson@jnmouse:~/jnm_jupyternotebook$ cd jnmouse/utils/
jetson@jnmouse:~/jnm_jupyternotebook/jnmouse/utils$ python3 create_jupyter_service.py --working_directory="$HOME/Notebooks/"
jetson@jnmouse:~/jnm_jupyternotebook/jnmouse/utils$ ls
create_jupyter_service.py  __init__.py  jnmouse_jupyter.service  utils.py
jetson@jnmouse:~/jnm_jupyternotebook/jnmouse/utils$ cat jnmouse_jupyter.service  
[Unit]
Description=Jupyter Notebook Service

[Service]
Type=simple
User=jetson
ExecStart=/bin/sh -c "jupyter lab --ip=0.0.0.0 --no-browser"
WorkingDirectory=/home/jetson/Notebooks/
Restart=always

[Install]
WantedBy=multi-user.target

Any other comments?

Checklists