Diff -- /etc/cron.d/drift_sense
Diff
/etc/cron.d/drift_sense
added on localhost-ssh-agent at 2026-07-11 18:27:53
Added
+18
lines
Removed
-0
lines
Context
0
unchanged
Blobs
from
to c74fd269e93f
to c74fd269e93f
Unified diff
Naive LCS-based line diff. Additions in emerald, deletions in rose. Both sides decompressed live from BLOB_STORE.| 1 | # /etc/cron.d/drift_sense | |
| 2 | # | |
| 3 | # DriftSense scanners. Both run as the panel user so they can read | |
| 4 | # whatever files a normal operator can read on the server; if you need | |
| 5 | # to scan root-only paths, install a second copy under root or grant | |
| 6 | # specific groups. Output redirected to /var/log/drift_sense/*.log. | |
| 7 | # | |
| 8 | # NOTE: cron.d files must end with a newline. | |
| 9 | ||
| 10 | SHELL=/bin/bash | |
| 11 | PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
| 12 | ||
| 13 | # File scanner -- every 2 minutes. Cheap (mtime-first optimization). | |
| 14 | */2 * * * * root /usr/bin/perl /var/www/vhosts/3dshawn.com/site1/_file_scan.pl >> /var/log/drift_sense/file_scan.log 2>&1 | |
| 15 | ||
| 16 | # Schema scanner -- every 5 minutes. Uses UPDATE_TIME early-exit. | |
| 17 | */5 * * * * root /usr/bin/perl /var/www/vhosts/3dshawn.com/site1/_schema_scan.pl >> /var/log/drift_sense/schema_scan.log 2>&1 | |
| 18 | */1 * * * * root /usr/bin/perl /var/www/vhosts/3dshawn.com/site1/_alert_dispatch.pl >> /var/log/drift_sense/alert_dispatch.log 2>&1 |