Skip to content

Instantly share code, notes, and snippets.

@KunoiSayami
Created October 13, 2020 17:15
Show Gist options
  • Save KunoiSayami/d4929675248e7b23a40afc5188e49a46 to your computer and use it in GitHub Desktop.
Save KunoiSayami/d4929675248e7b23a40afc5188e49a46 to your computer and use it in GitHub Desktop.
Systemd file for jupyter lab
; 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