# infra/units/fly-retention.service — triggered by fly-retention.timer # (also invoked directly by fly-watchdog's disk guard, see bin/fly-watchdog). [Unit] Description=Prune old segments, highlights, and orphan checkpoints [Service] Type=oneshot User=fly Environment=FLY_STATE_DIR=/srv/fly/state Environment=FLY_MEDIA_DIR=/srv/fly/media ExecStart=/opt/fly/bin/fly-retention Nice=15 IOSchedulingClass=idle # Batch work never competes with anything: idle policy (Nice and CPUWeight are moot under it). The # sim's CPUs are out of its reach anyway (fly-cpu-confine); this keeps it off the page's and the # encoder's too. SCHED_IDLE measured harmless beside the pinned sweep workers. CPUSchedulingPolicy=idle