Live memory of a unit systemd
Read live cgroup metrics straight from systemd without ps; MemoryCurrent is the accounted RSS
systemctl show -p MainPID,MemoryCurrent,TasksCurrent <unit>
more systemd
all 26 commands →
Clear failed state
systemctl reset-failed && systemctl list-units --state=failed
Transient one-shot timer
systemd-run --on-calendar='*-*-* 03:00:00' --unit=backup /usr/local/bin/backup.sh
Runtime resource cap
systemctl set-property --runtime <unit> MemoryMax=512M CPUQuota=50%
Pending jobs queue
systemctl list-jobs
Enable and start service
systemctl enable --now myapp.service