Runtime resource cap

Apply cgroup limits live without restart; --runtime keeps them volatile (gone on reboot)

systemctl set-property --runtime <unit> MemoryMax=512M CPUQuota=50%

tool
systemd26 commands
tags
systemdperformancetroubleshooting

More systemd commands

  • systemctl list-jobs

    Show in-flight start/stop jobs to diagnose a hung boot or a unit stuck activating

  • systemctl enable --now myapp.service

    Enable at boot and start immediately in one command

  • systemctl list-units --state=failed

    List all units that are in a failed state

  • systemctl daemon-reload && systemctl restart myapp.service

    Reload unit definitions and restart the service

  • systemctl edit myapp.service

    Create /etc/systemd/system/myapp.service.d/override.conf with partial overrides

all 26 systemd commands