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
More systemd commands
-
systemctl list-jobsShow in-flight start/stop jobs to diagnose a hung boot or a unit stuck activating
-
systemctl enable --now myapp.serviceEnable at boot and start immediately in one command
-
systemctl list-units --state=failedList all units that are in a failed state
-
systemctl daemon-reload && systemctl restart myapp.serviceReload unit definitions and restart the service
-
systemctl edit myapp.serviceCreate /etc/systemd/system/myapp.service.d/override.conf with partial overrides