Skip to content

Instantly share code, notes, and snippets.

@viseshrp
Last active November 21, 2022 00:41
Show Gist options
  • Save viseshrp/e75f6ef7ba4412262386f4e65ea866c3 to your computer and use it in GitHub Desktop.
Save viseshrp/e75f6ef7ba4412262386f4e65ea866c3 to your computer and use it in GitHub Desktop.
/etc/systemd/system/glances.service
[Unit]
Description=Glances
After=network.target
[Service]
ExecStart=/opt/glances/venv/bin/glances --server --disable-webui --disable-history
Restart=on-abort
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
pip install 'glances[docker]'
sudo systemctl enable glances.service --now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment