History log of /freebsd-current/usr.sbin/periodic/periodic.conf
Revision Date Author Comments
# aa48259f 15-Apr-2024 Michael Osipov <michaelo@FreeBSD.org>

periodic.conf: remove long deprecated security_daily_compat_var()

This function is documented to be gone in after 11. Time to remove this
compat shim.

PR: 275296
Reviewed by: jrm (mentor)
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D44796


# 493908c4 09-Apr-2024 Lexi Winter <lexi@le-fay.org>

periodic/daily/801.trim-zfs: Add a daily zfs trim script

As mentioned in zpoolprops(7), on some SSDs, it may not be desirable to
use ZFS autotrim because a large number of trim requests can degrade
disk performance; instead, the pool should be manually trimmed at
regular intervals.

Add a new daily periodic script for this purpose, 801.trim-zfs. If
enabled (daily_trim_zfs_enable=YES; the default is NO), it will run a
'zpool trim' operation on all online pools, or on the pools listed in
'daily_trim_zfs_pools'.

The trim is not started if the pool is degraded (which matches the
behaviour of the existing 800.scrub-zfs script) or if a trim is already
running on that pool. Having autotrim enabled does not inhibit the
periodic trim; it's sometimes desirable to run periodic trims even with
autotrim enabled, because autotrim can elide trims for very small
regions.

PR: 275965
MFC after: 1 week
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/956


# e2f6bafc 24-Nov-2023 Michael Osipov <michaelo@FreeBSD.org>

periodic: Make daily diff(1) output as small is possible

Make, by default, daily diff(1) ignore whitespace changes and the unified output
a context of zero (0) lines. This reduces output of unrelated lines in e-mails
delivered to root.

PR: 270266
Approved by: jrm (mentor), karels
MFC after: 1 month
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D42762


# 15e35d05 24-Nov-2023 Michael Osipov <michaelo@FreeBSD.org>

periodic: Make daily diff(1) flags configurable with daily_diff_flags

PR: 270266
Approved by: jrm (mentor), karels
MFC after: 1 month
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D42900


# 3aa71ea7 24-Nov-2023 Michael Osipov <michaelo@FreeBSD.org>

periodic: Make security diff(1) output as small is possible

Make, by default, security diff(1) produce a unified output with a context of
zero (0) lines. This reduces output of unrelated lines in e-mails delivered
to root.

PR: 270266
Approved by: jrm (mentor), karels
MFC after: 1 month
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D43071


# d0b2dbfa 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line sh pattern

Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/


# e5d7100c 06-Jun-2023 Juraj Lutter <otis@FreeBSD.org>

periodic: Honor kern.localbase

Take kern.localbase into account with fallback to /usr/local and
also allow for LOCALBASE/etc/periodic.conf (similarly to what
many other utilities do).

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D40435
MFC after: 2 weeks


# 0784121c 09-Mar-2022 Matteo Riondato <matteo@FreeBSD.org>

pfdenied: support reporting on additional anchors

The security/520-pfdenied script only reports blocked packets from the
main ruleset or any blocklistd(8) anchor.

Add an option to periodic.conf(5) to make it possible to specify
additional anchors to report.

PR: 262446
Reviewed by: kp


# 901c52f1 07-Mar-2022 Nils Johannsen <n.johannsen@beckhoff.com>

periodic: remove obsolete news.expire

With the initial import of 386BSD 0.1 in 1993, the daily execution of
/etc/news.expire was introduced (see commit 1bf9d5d9518e).

In 1997, this was brought into periodic resulting in daily/330.news
(see commit 28dce04d1975). But as far as I see, /etc/news.expire has
never existed.

PR: 256238
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D30631


# fcf2227a 18-Jun-2021 Alan Somers <asomers@FreeBSD.org>

periodic: by default, skip 221.backup-gpart in jails

It can still be enabled as usual in /etc/periodic.conf

PR: 256253
Reported by: delphij
Submitted by: Miroslav Lachman <000.fbsd@quip.cz>
MFC after: 2 weeks


# 3701068b 06-Nov-2020 Robert Wing <rew@FreeBSD.org>

Add a periodic script to backup output generated from `gmirror list`.

Disabled by default.

PR: 86388
Submitted by: Miroslav Lachman <000.fbsd@quip.cz>
Reviewed by: allanjude, gbe
Approved by: allanjude (mentor)
MFC after: 4 weeks
Event: July 2020 Bugathon
Differential Revision: https://reviews.freebsd.org/D25631


# eefe831e 06-Nov-2020 Robert Wing <rew@FreeBSD.org>

Add a periodic script to backup output generated from `zfs list`, `zfs get`,
`zpool list`, and `zpool get` commands.

Disabled by default.

PR: 86388
Submitted by: Miroslav Lachman <000.fbsd@quip.cz>
Reviewed by: allanjude, 0mp
Approved by: allanjude (mentor)
MFC after: 4 weeks
Event: July 2020 Bugathon
Differential Revision: https://reviews.freebsd.org/D25638


# 37d72a91 09-Sep-2020 Robert Wing <rew@FreeBSD.org>

periodic.conf(5): don't truncate interface names reported by 420.status-network.

The daily periodic script, 420.status-network uses netstat(1) to report
interface status. By default, netstat(1) truncates interface names.

Add the '-W' flag (avoid truncating interface names) as the default for
'daily_status_network_netstat_flags' in periodic.conf(5).

The default 420.status-network command is now 'netstat -i -d -W -n'.

PR: 163572
Reported by: kes-kes@yandex.ru
Reviewed by: allanjude (mentor) bcr (manpages)
Approved by: allanjude (mentor)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D26023


# ce2fe5b1 11-Jul-2020 Allan Jude <allanjude@FreeBSD.org>

Add a periodic script to backup the partition table and boot code

Optionally, alert you if the contents change from the previous backup

PR: 86388
Submitted by: Rob Fairbanks <rob.fx907@gmail.com>, Miroslav Lachman <000.fbsd@quip.cz> (Original Version)
MFC after: 4 weeks
Relnotes: yes
Sponsored by: Klara Inc.
Event: July 2020 Bugathon
Differential Revision: https://reviews.freebsd.org/D25628


# fd1efedc 02-Mar-2020 Conrad Meyer <cem@FreeBSD.org>

Add extremely useful calendar(1) application to FreeBSD

It does extremely useful things like execute sendmail and spew dubiously
accurate factoids.

From the feedback, it seems like it is an essential utility in a modern unix
and not at all a useless bikeshed. How do those Linux people live without it?
Reverts r358561.


# 3c565de3 02-Mar-2020 Conrad Meyer <cem@FreeBSD.org>

Fix typo in r278616

FreeBSD isn't an encyclopedia.


# 81ea85a8 11-Aug-2018 Brad Davis <brd@FreeBSD.org>

Move all periodic related config and scripts to usr.sbin/periodic/

This makes pkgbase easier by tagging these as CONFS so they are properly
tagged as config files.

Approved by: will (mentor)
Sponsored by: Essen Hackathon
Differential Revision: https://reviews.freebsd.org/D16553