summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-01-22 23:50:47 +0000
committerngie <ngie@FreeBSD.org>2015-01-22 23:50:47 +0000
commit3a0eab2e37aca76c631e1e71d35caa73f7f8a44a (patch)
tree7d58e0f77feb3d5f48fd3821cd674338505f55ec /etc
parent02b832180aa3a176b14e8e39b81ee5ac693a8e95 (diff)
downloadFreeBSD-src-3a0eab2e37aca76c631e1e71d35caa73f7f8a44a.zip
FreeBSD-src-3a0eab2e37aca76c631e1e71d35caa73f7f8a44a.tar.gz
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
Diffstat (limited to 'etc')
-rw-r--r--etc/Makefile5
-rw-r--r--etc/newsyslog.conf.d/Makefile13
-rw-r--r--etc/newsyslog.conf.d/opensm.conf3
3 files changed, 20 insertions, 1 deletions
diff --git a/etc/Makefile b/etc/Makefile
index 76db02a..62b837f 100644
--- a/etc/Makefile
+++ b/etc/Makefile
@@ -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"
diff --git a/etc/newsyslog.conf.d/Makefile b/etc/newsyslog.conf.d/Makefile
new file mode 100644
index 0000000..c2574b7
--- /dev/null
+++ b/etc/newsyslog.conf.d/Makefile
@@ -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>
diff --git a/etc/newsyslog.conf.d/opensm.conf b/etc/newsyslog.conf.d/opensm.conf
new file mode 100644
index 0000000..36248bd
--- /dev/null
+++ b/etc/newsyslog.conf.d/opensm.conf
@@ -0,0 +1,3 @@
+# $FreeBSD$
+
+/var/log/opensm.log 600 7 * * Z /var/run/opensm.pid 30
OpenPOWER on IntegriCloud