Date: Thu, 22 Jan 2015 23:50:48 +0000 (UTC) From: Garrett Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r277541 - in head/etc: . newsyslog.conf.d Message-ID: <201501222350.t0MNomwm091649@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ngie Date: Thu Jan 22 23:50:47 2015 New Revision: 277541 URL: https://svnweb.freebsd.org/changeset/base/277541 Log: Add sample log rotation support for opensm Up to 7 archives of the log will be kept (just for consistency with the other log rotation rules) PR: 196788 MFC after: 1 week Reviewed by: hselasky Sponsored by: EMC / Isilon Storage Division Added: head/etc/newsyslog.conf.d/ head/etc/newsyslog.conf.d/Makefile (contents, props changed) head/etc/newsyslog.conf.d/opensm.conf (contents, props changed) Modified: head/etc/Makefile Modified: head/etc/Makefile ============================================================================== --- head/etc/Makefile Thu Jan 22 23:45:38 2015 (r277540) +++ head/etc/Makefile Thu Jan 22 23:50:47 2015 (r277541) @@ -3,8 +3,11 @@ .include <src.opts.mk> +SUBDIR= \ + newsyslog.conf.d + .if ${MK_SENDMAIL} != "no" -SUBDIR= sendmail +SUBDIR+=sendmail .endif .if ${MK_TESTS} != "no" Added: head/etc/newsyslog.conf.d/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/etc/newsyslog.conf.d/Makefile Thu Jan 22 23:50:47 2015 (r277541) @@ -0,0 +1,13 @@ +# $FreeBSD$ + +.include <src.opts.mk> + +BINDIR= /etc/newsyslog.conf.d + +FILES= + +.if ${MK_OFED} != "no" +FILES+= opensm.conf +.endif + +.include <bsd.prog.mk> Added: head/etc/newsyslog.conf.d/opensm.conf ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/etc/newsyslog.conf.d/opensm.conf Thu Jan 22 23:50:47 2015 (r277541) @@ -0,0 +1,3 @@ +# $FreeBSD$ + +/var/log/opensm.log 600 7 * * Z /var/run/opensm.pid 30
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501222350.t0MNomwm091649>