# 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