Diff -- /etc/cron.d/drift_sense
Diff
/etc/cron.d/drift_sense
modified on localhost-ssh-agent at 2026-07-11 23:04:46
Added
+4
lines
Removed
-14
lines
Context
4
unchanged
Blobs
from c74fd269e93f
to 73724bb96d06
to 73724bb96d06
Unified diff
Naive LCS-based line diff. Additions in emerald, deletions in rose. Both sides decompressed live from BLOB_STORE.| 1 | 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 | 2 | SHELL=/bin/bash |
| 11 | 3 | 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 | 4 | |
| 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 | |
| 5 | */2 * * * * root /usr/bin/perl /var/www/vhosts/3dshawn.com/site1/_file_scan.pl >> /var/log/drift_sense/file_scan.log 2>&1 | |
| 6 | */5 * * * * root /usr/bin/perl /var/www/vhosts/3dshawn.com/site1/_schema_scan.pl >> /var/log/drift_sense/schema_scan.log 2>&1 | |
| 7 | */5 * * * * root /usr/bin/perl /var/www/vhosts/3dshawn.com/site1/_agent_scan.pl >> /var/log/drift_sense/agent_scan.log 2>&1 | |
| 8 | */1 * * * * root /usr/bin/perl /var/www/vhosts/3dshawn.com/site1/_alert_dispatch.pl >> /var/log/drift_sense/alert_dispatch.log 2>&1# stealth mode canary |