Simple systemd user unit file for Jupyter notebook
❯ cat ~/.config/systemd/user/jupyter-notebook.service
[Unit]
Description=Jupyter Notebook
[Service]
Type=simple
PIDFile=/run/jupyter.pid
ExecStart=/home/user/Notebook/bin/jupyter-notebook
[Install]
WantedBy=default.target
❯ systemctl --user enable jupyter-notebook.service
Created symlink /home/user/.config/systemd/user/default.target.wants/jupyter-notebook.service → /home/user/.config/systemd/user/jupyter-notebook.service.
❯ loginctl enable-linger
Note: Lingering is required to start systemd user sessions on boot