systemd

jupyter.service
# /usr/lib/systemd/system/jupyter.service
# systemctl daemon-reload
# systemctl enable jupyter.service
[Unit]
Description=Jupyter Notebook
Requires=local-fs.target
After=local-fs.target
 
[Service]
Type=simple
PIDFile=/run/jupyter.pid
ExecStart=/usr/local/bin/jupyter-notebook\
        --no-browser\
        --config=/home/datamining/.jupyter/jupyter_notebook_config.py\
        --notebook-dir=/home/datamining/jupyter\
        --ip 0.0.0.0
User=datamining
Group=datamining
WorkingDirectory=/home/datamining/jupyter/
Restart=always
RestartSec=10
#KillMode=mixed
 
[Install]
WantedBy=multi-user.target
  • unix/systemd.txt
  • Last modified: 2018-08-05T15:12:11+0200
  • by Wolfgang