https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291025
--- Comment #2 from Alex Soto Aguilera <[email protected]> --- After more investigation this appears to be caused by my local periodic configuration inside the jails, not by periodic(8) itself. In /etc/defaults/periodic.conf the following defaults are present: periodic_conf_files="/etc/periodic.conf /etc/periodic.conf.local ${_localbase}/etc/periodic.conf" local_periodic="${_localbase}/etc/periodic" _localbase is set inside /usr/sbin/periodic, and local_periodic is then used to add the “local” periodic tree (normally /usr/local/etc/periodic). In my jails, for some reason local_periodic was not effectively pointing to /usr/local/etc/periodic, which resulted in periodic walking the periodic directories in an unexpected way and running the scripts twice per invocation. I fixed the issue inside the jails by explicitly setting local_periodic in /etc/periodic.conf: local_periodic="/usr/local/etc/periodic" After adding this line and re-running periodic inside the jails, the output is no longer duplicated: each script runs once per run and the daily/weekly mails from the jails contain a single copy of each block. >From my point of view the problem is resolved with this configuration change. I am leaving the PR open so that someone can confirm whether this behavior is expected in jails (e.g. whether local_periodic/_localbase should be documented more clearly for jailed environments, or if there is anything that should be adjusted in periodic or jail setups to avoid this pitfall) -- You are receiving this mail because: You are the assignee for the bug.
