Commit Graph
1 Commits
Author SHA1 Message Date
obscuremindandClaude Opus 5.5 16788f6ba1 fix(modules): write a module's cron lines when it is installed, not at the next restart
A module's cron lines (CronProviderInterface) reach root's crontab
through StartupCommand::installRootCrontab(), which only startup and
status call. A module installed, enabled, disabled or removed from the
panel changed nothing there until the next restart: the anti-abuse
shield, for one, never ran after its install, so its honeypot ports
were never opened.

cron:root_signals, root's every-minute run, now writes the crontab again
when config/modules.php has changed since it was last written from it
(its hash is kept in config/crontab.modules). installRootCrontab() says
whether the crontab holds the list, and a write that failed is tried
again the next minute.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 14:56:12 +00:00