Date: Thu, 30 Dec 2010 12:43:18 GMT From: Sean McAfee <smcafee@collaborativefusion.com> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/153543: Allow periodic to read periodic.conf from /usr/local/etc/ Message-ID: <201012301243.oBUChIgQ082900@red.freebsd.org> Resent-Message-ID: <201012301250.oBUCo9DG065441@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Dec 30 12:50:08 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Sean McAfee >Release: FreeBSD 8.1 >Organization: Collaborative Fusion, Inc. >Environment: FreeBSD xxxx 8.1-RELEASE-p2 FreeBSD 8.1-RELEASE-p2 #1: Wed Dec 8 11:56:34 UTC 2010 root@xxxx:/usr/obj/usr/src/sys/GENERIC amd64 >Description: 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. >How-To-Repeat: Attempt to install a /usr/local/etc/periodic.conf that controls which scripts are run. >Fix: 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 local_periodic="/usr/local/etc/periodic" >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012301243.oBUChIgQ082900>