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
This commit is contained in:
ngie 2015-01-22 23:50:47 +00:00
parent 02b832180a
commit 3a0eab2e37
3 changed files with 20 additions and 1 deletions

View File

@ -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"

View File

@ -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>

View File

@ -0,0 +1,3 @@
# $FreeBSD$
/var/log/opensm.log 600 7 * * Z /var/run/opensm.pid 30