RECAPLOG(8)
π§Ή RECAPLOG β the section 8 girlies know π
okay bestie, gather round, because recaplog is a whole system manager's manual situation and she is lowkey the most unbothered queen in your /etc. π
β¨ NAME β¨
recaplog β she handles all the logs that recap generates, and by "handles" I mean she compresses them and/or deletes them. iconic behavior fr fr. π¦
πΈ SYNOPSIS πΈ
recaptool [-n|-v|-h|-V]
(no, you're not seeing things, that's literally what it says, and we respect the mystery π«Ά)
π DESCRIPTION π
so recaplog is a user-configurable script β meaning you, yes you, get to decide how she behaves. she runs periodically out of cron or systemd.timer and her whole job is:
- compress the
recaplog files that are older than one day ποΈ - delete log files that are older than a configurable amount of days π
and here's the gag: recaplog will not produce output if a tty is not found. which sounds antisocial but is actually exactly the point β it's perfect for when you're running from cron and nobody's there to read your little messages anyway. main character energy that respects your time. π
β¨ OPTIONS β¨
one bullet per flag, no skipping, no cap:
-h,--helpβ prints out the help. your girl is helpful. π-n,--dry-runβ performs a dry run. (heads up bestie: this implies verbose, so she's gonna yap about what she would have done.) π-v,--verboseβ prints to stdout. she's talking now. π’-V,--versionβ prints the version and exits. quick lil flex. β
π SETTINGS π
these can be modified via the config file, iykyk. π
LOG_COMPRESSβ enables (1) or disables (0) log compression. (default:1) β so compression is on out of the box, slay.LOG_EXPIRYβ number of days held for the logs. (default:15) β two weeks and a day of log hoarding, then she clears house. π§Ή
π¦ FILES π¦
/etc/recap.confβ the configuration file./etc/cront.d/recapβ the cronjob file./usr/lib/systemd/systemd/recaplog.{service,timer}β unit files forrecaplog./var/log/recap/recaplog.logβ therecaplogfile.
π REPORTING BUGS π
found a bug? issues and bugs go to github, bestie:
<https://github.com/rackerlabs/recap/issues>
do NOT suffer in silence, we're a community. π«Ά
π AUTHOR π
the recap scripts are maintained by Rackspace, and the full list of contributors lives right here:
<https://github.com/rackerlabs/recap/blob/master/CHANGELOG.md#contributors>
shoutout to every single one of them, fr fr. π
π SEE ALSO π
recap.conf(5), recap(8), crontab(5), systemd.timer(5)
β οΈ ok one last thing, and I mean it: this page is dated Aug 18, 2017, it's from the System Manager's Manual (that's the section 8 vibe, which is why we sayRECAPLOG(8)), and it ships as part of therecapscripts. so when you're reading it in 2024 and beyond, that's the vintage. she's a classic, not outdated. periodt. π β¨
k bye, go compress something π
π¦ where this page comes from
- debian bookworm: recap 2.1.0-1 Β· GPL-2.0-or-later
- debian trixie: recap 2.1.0-1 Β· GPL-2.0-or-later
- epel 9: recap 2.1.0-13.el9 Β· GPLv2
- fedora 43: recap 2.1.0-17.fc41 Β· GPLv2
- fedora 43: recap 2.1.0-21.fc43 Β· GPL-2.0-only
- fedora 44: recap 2.1.0-22.fc44 Β· GPL-2.0-only
- ubuntu jammy: recap 2.1.0-1 Β· GPL-2.0-or-later
- ubuntu noble: recap 2.1.0-1 Β· GPL-2.0-or-later
- ubuntu resolute: recap 2.1.0-1build1 Β· GPL-2.0-or-later
- ubuntu stonking: recap 2.1.0-1build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms