[Unit] Description=Periodic stop of detached, idle agent sessions [Timer] # A session becomes reapable one idle hour after its last progress, so a 5-minute sweep # bounds the waste at 5 minutes of one detached session. Each run classifies the whole # ledger, which costs a CPU sample per session — the reason this is not the 20s sweep. OnBootSec=5min OnUnitActiveSec=5min Unit=agent-session-reap.service [Install] WantedBy=timers.target