TIL: Restarting systemd services on sustained CPU abuse

265 · Rui Carmo · Dec. 28, 2025, 1:41 p.m.
Summary
The blog post discusses a method for managing CPU usage by the avahi-daemon in LXC containers using systemd service policies. It explains how to limit CPU usage, set up a watchdog script, and ensure services are restarted when certain thresholds are met. The author shares personal insights and practical steps taken to implement this solution effectively.