From 8d47ff1a6b7aa7951099aeee0005357471cd9850 Mon Sep 17 00:00:00 2001 From: ngie Date: Mon, 2 Feb 2015 10:00:45 +0000 Subject: [PATCH] MFC r278067: r278067: MFC r277541: r277541: 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 Reviewed by: hselasky Sponsored by: EMC / Isilon Storage Division git-svn-id: svn://svn.freebsd.org/base/stable/9@278069 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- etc/Makefile | 5 ++++- etc/newsyslog.conf.d/Makefile | 13 +++++++++++++ etc/newsyslog.conf.d/opensm.conf | 3 +++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 etc/newsyslog.conf.d/Makefile create mode 100644 etc/newsyslog.conf.d/opensm.conf diff --git a/etc/Makefile b/etc/Makefile index f8f3df26d..daae9be6d 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -3,8 +3,11 @@ .include +SUBDIR= \ + newsyslog.conf.d + .if ${MK_SENDMAIL} != "no" -SUBDIR= sendmail +SUBDIR+=sendmail .endif BIN1= crontab \ diff --git a/etc/newsyslog.conf.d/Makefile b/etc/newsyslog.conf.d/Makefile new file mode 100644 index 000000000..46609576a --- /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 000000000..36248bde5 --- /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 -- 2.45.0