Skip to content

Instantly share code, notes, and snippets.

@janaSunrise
Last active November 27, 2020 05:23
Show Gist options
  • Save janaSunrise/4a8411ecde25c3097aa67317de25494a to your computer and use it in GitHub Desktop.
Save janaSunrise/4a8411ecde25c3097aa67317de25494a to your computer and use it in GitHub Desktop.
This is the systemd service, That will enable the process to keep running, until Manually stopped, and Also Automatically will bind to the port specified.
[Unit]
Description=jupyter-notebook
After=network.target
[Service]
Type=simple
ExecStart=/home/jana/anaconda3/bin/jupyter-notebook --no-browser --ip=0.0.0.0 --port=9999 --port-retries=50
Restart=always
RestartSec=10
User=<your-user>
Group=<respective-group>
WorkingDirectory=<working-dir>
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment