journalctl --no-pager --since today \
--grep 'fail|error|fatal' --output json|jq '._EXE' | \
sort | uniq -c | sort --numeric --reverse --key 1
- 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