Created
October 13, 2020 17:15
-
-
Save KunoiSayami/d4929675248e7b23a40afc5188e49a46 to your computer and use it in GitHub Desktop.
Systemd file for jupyter lab
This file contains 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 characters
; Works on Arch Linux 5.8.14-arch1-1 | |
[Unit] | |
Description=Jupyter lab | |
[Service] | |
Type=simple | |
ExecStart=/usr/bin/jupyter-lab --ip 0.0.0.0 --port 9090 | |
ExecStop=sh -c 'kill -2 $MAINPID && kill -2 $MAINPID && tail --pid=$MAINPID -f /dev/null' | |
WorkingDirectory=/home/user/notebook | |
User=user | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment