SYSTRAQ(8)
π SYSTRAQ π
okay bestie, so this is systraq from the systraq User Manual, and it lives in section 8 of the manual (that's the sysadmin-commands zone, very grown-up, very demure) π
β¨ NAME β¨
systraq β monitors your system and warns you when files change ππ
πΈ SYNOPSIS πΈ
systraq
π¦ DESCRIPTION π¦
So systraq is part of the systraq package, which is a whole set of scripts that monitors your system for file changes. And no, you don't just run it by hand like some kind of gremlin β it's meant to be run by a cronjob, not directly. periodt.
Here's the vibe: systraq runs a bunch of system commands to inspect the state of your system. Like β what is it doing right now? what has it been doing recently? are we running into hardware limitations?? π On top of that, it runs commands to inspect some files in users' homedirectories, plus some system files, looking for the flaws that show up the most often. All these commands are maintained in little scripts in /etc/systraq/systraq.d.
And here's the iconic little detail: the first two characters of a script's name are what determines the execution-order. Slay. π
Also important: the names of executable files in systraq.d/ (or symlinks pointing at such files) must consist entirely of upper and lower case letters, digits, underscores, and hyphens. Files that don't follow the rules? They get silently ignored. No warning, no drama, just nothing. π
The systraq script supplies some environment variables to the scripts in systraq.d/, and ngl those might be super helpful when you're adding your own scripts. For the details, go read the (very small!) systraq code itself. iykyk π
Okay now let's elaborate on some of the shipped systraq.d/ scripts, bestie:
AA-shellrcβ checks for unsafeumasksetting in shell startup scripts, or unsafePATHin these scripts. πAA-debsumsβ runsdebsums, to check md5sums as stated in packaging files against the sums of the actual files running the system. (NB:debsumshas support for md5 checksums only, and most Debian packages ship md5 checksums only. Therefore, we can't usesha256sum. See also the discussion on proposed release goal: DEBIAN/md5sums for all packages[1] at the Debian release mailinglist in August 2007, as well as Debian Bug #268658[2] for some considerations on this.) π§ΎAA-localdigestβ runssha256sum(or whatever command you set in theST_SUMenvironment variable) to check message digests as locally maintained in a file named in theST_LDIGESTSenvironment variable. Typically, this is set to/var/lib/systraq/systraq.sums. If this environment variable is unset, this check is silently skipped. π
And of course β you can add your own scripts! π If you name them AA-local, they'll never get overwritten by any version of this software. And if you don't like one of these scripts, you can disable it by removing the symlink, and creating a new symlink with the same name pointing to /bin/true. That's the whole trick, no cap. π§
π SEE ALSO π
The systraq Manual, installed in /usr/share/doc/systraq. π
β VERSION β
20201231
π AUTHORS π
- Joost van Baal-IliΔ
<joostvb-systraq-20151105@mdcc.cx>- Author.
- Laurent Fousse
<laurent@komite.net>- Author.
π COPYRIGHT π
Copyright Β© 2001-2020 Joost van Baal-IliΔ
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or any later version published by the Free Software Foundation.
This document is based upon a manual page written by Laurent Fousse for the Debian project. π«Ά
π NOTES π
- proposed release goal: DEBIAN/md5sums for all packages
http://lists.debian.org/debian-release/2007/08/threads.html#00086 - Debian Bug #268658
http://bugs.debian.org/268658
and that's the whole page, bestie π go forth and let cron run systraq for you
systraq β Uku 31 2020 β SYSTRAQ(8) πΈβ¨π
π¦ where this page comes from
- debian bookworm: systraq 20201231-1 Β· GPL-2.0-or-later
- debian trixie: systraq 20201231-5 Β· GPL-2.0-or-later
- ubuntu jammy: systraq 20201231-1 Β· GPL-2.0-or-later
- ubuntu noble: systraq 20201231-1 Β· GPL-2.0-or-later
- ubuntu resolute: systraq 20201231-5 Β· 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