misc/153543: Allow periodic to read periodic.conf from /usr/local/etc/

Sean McAfee smcafee at collaborativefusion.com
Thu Dec 30 12:50:09 UTC 2010

>Number:         153543
>Category:       misc
>Synopsis:       Allow periodic to read periodic.conf from /usr/local/etc/
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 30 12:50:08 UTC 2010
>Originator:     Sean McAfee
>Release:        FreeBSD 8.1
Collaborative Fusion, Inc.
FreeBSD xxxx 8.1-RELEASE-p2 FreeBSD 8.1-RELEASE-p2 #1: Wed Dec  8 11:56:34 UTC 2010     root at xxxx:/usr/obj/usr/src/sys/GENERIC  amd64

In an effort to simplify our configurations, we tried moving our periodic.conf (which controls a few local periodic scripts installed to /usr/local/etc/periodic/) to /usr/local/etc/, only to find that the only overrides listed in /etc/defaults/periodic.conf are /etc/periodic.conf and /etc/periodic.conf.local.

Since locally installed periodic scripts make their way into /usr/local/etc/periodic (instead of /etc/periodic), it makes sense to have the configuration live in /usr/local/etc/ as well.

This seems to be more of an oversight (or holdover from OpenBSD ported code), than a deliberate decision. 
Attempt to install a /usr/local/etc/periodic.conf that controls which scripts are run.
Apply the attached patch (done against 8.2-RC1).

Patch attached with submission follows:

--- /etc/defaults/periodic.conf.orig	2010-12-30 07:36:38.000000000 -0500
+++ /etc/defaults/periodic.conf	2010-12-30 07:37:01.000000000 -0500
@@ -17,7 +17,7 @@
 # What files override these defaults ?
-periodic_conf_files="/etc/periodic.conf /etc/periodic.conf.local"
+periodic_conf_files="/etc/periodic.conf /etc/periodic.conf.local /usr/local/etc/periodic.conf"
 # periodic script dirs


More information about the freebsd-bugs mailing list