svn commit: r277541 - in head/etc: . newsyslog.conf.d
Garrett Cooper
ngie at FreeBSD.org
Thu Jan 22 23:50:49 UTC 2015
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
More information about the svn-src-head
mailing list