swift-orphans(1)

🌸 NAME 🌸

swift-orphans β€” the OpenStack Swift orphans tool πŸ’–. That's the whole name, bestie, and the manual page is literally called swift-orphans(1), so you already know what time it is. Orphan hunting era. πŸ‘‘


✨ SYNOPSIS ✨

swift-orphans [-h|--help] [-a|--age] [-k|--kill] [-w|--wide] [-r|--run-dir]

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so, plot twist: swift-orphans lists orphaned Swift processes, and if you're feeling spicy, it will kill them too. πŸ’€ Not me being the one to do the dirty work.

Here's the vibe: it goes and scans /var/run/swift β€” or whatever directory you handed to the -r switch, if you're fancy β€” looking for .pid files. Then it lists any processes that look like Swift processes but aren't associated with the pids in those .pid files. Those are the orphans. They're just out there, unsupervised, no pid file to call home. 😭

Heads up bestie: any Swift processes running with the 'once' parameter get ignored. Those are usually for full-speed audit scans and such, so leave them alone, they're busy. πŸƒβ™€οΈπŸ’¨

Example β€” this one sends SIGTERM to all orphaned Swift processes older than two hours:

swift-orphans -a 2 -k TERM

Ate. ✨

πŸ’… OPTIONS πŸ’… (yes bestie, the options are as follows)

  • -a HOURS, --age=HOURS β€” look for processes at least HOURS old. Default: 24. ⏰
  • -k SIGNAL, --kill=SIGNAL β€” send SIGNAL to the matched processes. Default: it just lists process information, no violence. 🫢
  • -w, --wide β€” don't clip the listing at 80 characters. Let it breathe, let it be free. πŸ¦‹

πŸŽ€ DOCUMENTATION πŸŽ€

Want more? Of course you do. More documentation about OpenStack Swift lives at:

https://docs.openstack.org/swift/latest/

Go read it, it's giving study session energy. πŸ“šβœ¨


That's the whole page, fr fr. This one comes from Linux and it's dated 3/15/2012 β€” yes, a vintage icon, we respect our elders in this house. πŸ’œ πŸŽ€