Skip to content

Status: CPU, Mem

To show CPU and Memory usage in systemctl status MyService.service command edit /etc/systemd/system.conf:

DefaultCPUAccounting=yes
DefaultMemoryAccounting=yes

Then run

systemctl daemon-reload