summaryrefslogtreecommitdiff
path: root/usr.sbin/periodic/etc
Commit message (Collapse)AuthorAgeFilesLines
* Add a periodic script to backup output generated from `gmirror list`.Robert Wing2020-11-072-0/+73
| | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=367443
* Add a periodic script to backup output generated from `zfs list`, `zfs get`,Robert Wing2020-11-062-1/+80
| | | | | | | | | | | | | | | | | `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 Notes: svn path=/head/; revision=367436
* Actually install the new 221.backup-gpart periodic scriptAllan Jude2020-07-141-0/+1
| | | | | | | | | | Submitted by: Rob Fairbanks <rob.fx907@gmail.com> Reported by: Michael Butler <imb@protected-networks.net> MFC with: r363110 Sponsored by: Klara Inc. Notes: svn path=/head/; revision=363169
* Add a periodic script to backup the partition table and boot codeAllan Jude2020-07-111-0/+124
| | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=363110
* Add extremely useful calendar(1) application to FreeBSDConrad Meyer2020-03-032-0/+33
| | | | | | | | | | | | 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. Notes: svn path=/head/; revision=358562
* Fix typo in r278616Conrad Meyer2020-03-022-33/+0
| | | | | | | FreeBSD isn't an encyclopedia. Notes: svn path=/head/; revision=358561
* backup-passwd: mask out all passwords in the diffKyle Evans2020-02-111-1/+1
| | | | | | | | | | | | | | The previous expression borked if a username had a plus or hyphen in it. This is needlessly restrictive- at leSt a hyphen in the middle is valid. Instead of playing this game, let's just assume the username can't contain a colon and mask out the second field. Submitted by: sigsys gmail com MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D23548 Notes: svn path=/head/; revision=357756
* Fix pfdenied not returning any resultsKristof Provost2020-01-161-1/+1
| | | | | | | | | | | | | When _a is empty we end up with an invalid invocation of pfctl, and no output. We must add quotes to make it clear to pfctl that we're passing an empty anchor name. PR: 224415 Submitted by: sigsys AT gmail.com MFC after: 2 weeks Notes: svn path=/head/; revision=356816
* Eliminate spurious periodic.daily error message for rotating accounting log.Ian Lepore2019-07-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | In 2011, r218961 removed local code for rotating logs in favor of using the rotate_log command in etc/rc.d/accounting. If the accounting service is activated then subsequently de-activated in rc.conf but still remains active in periodic.conf, then you get an error message every day in the periodic jobs about being unable to rotate the logs. With this change to use "onerotate_log", the log rotation will happen the first time periodic daily runs after accounting was disabled but periodic accounting was left enabled. After that happens once, the /var/account/acct will no longer exist, which results in a different path through the periodic code and no more error messages will appear (unless daily_show_badconfig is set, in which case the admin will be told that periodic security processing is enabled but the accounting file is not present). This is only a partial fix for the problems reported in PR 202203. PR: 202203 Notes: svn path=/head/; revision=349807
* periodic/weekly/340.noid: do not use sysrc(8) that dependsEugene Grosbein2018-12-151-2/+13
| | | | | | | | | | | | | | on bsdinstall(8) and may be non-functional for system built WITHOUT_BSDINSTALL. (*) Also, add a check for jails sharing whole tree with host (path=/) and do not skip it. Reported by: Andre.Albsmeier@siemens.com (*) MFC after: 1 week Notes: svn path=/head/; revision=342141
* Fix daily mailq script for Postfix and daily_show_success="NO"Eric van Gyzen2018-11-111-1/+1
| | | | | | | | | | | Exit with a zero status when Postfix reports "Mail queue is empty" so this section won't appear in the report at all when daily_show_success="NO". MFC after: 2 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=340345
* weekly/340.noid: suppress warning on non-existent jail.confEugene Grosbein2018-11-101-1/+1
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=340327
* Sigh... Fix another breakage after r340322: spell "sysrc" correctly.Eugene Grosbein2018-11-101-1/+1
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=340324
* Fix breakage after r340322: add missing "-n" to invocation of sysrc.Eugene Grosbein2018-11-101-1/+1
| | | | | | | MFH: 1 month Notes: svn path=/head/; revision=340323
* Prevent periodic/etc/weekly/340.noid from descending into root directoriesEugene Grosbein2018-11-101-1/+19
| | | | | | | | | | | | of jails. Jails have their own user/group databases and this script can produce multiple false warnings, not to mention significant extra load in case of large jailed subtrees. Leave this check for jailed invocations of the same script. MFC after: 1 month Notes: svn path=/head/; revision=340322
* Move all periodic related config and scripts to usr.sbin/periodic/Brad Davis2018-08-1159-0/+2766
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 Notes: svn path=/head/; revision=337648