From 3a0eab2e37aca76c631e1e71d35caa73f7f8a44a Mon Sep 17 00:00:00 2001 From: ngie Date: Thu, 22 Jan 2015 23:50:47 +0000 Subject: 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 --- etc/newsyslog.conf.d/Makefile | 13 +++++++++++++ etc/newsyslog.conf.d/opensm.conf | 3 +++ 2 files changed, 16 insertions(+) create mode 100644 etc/newsyslog.conf.d/Makefile create mode 100644 etc/newsyslog.conf.d/opensm.conf (limited to 'etc/newsyslog.conf.d') 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 + +BINDIR= /etc/newsyslog.conf.d + +FILES= + +.if ${MK_OFED} != "no" +FILES+= opensm.conf +.endif + +.include 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 -- cgit v1.1