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:
Enji Cooper 2015-01-22 23:50:47 +00:00
parent f70dd52fe6
commit 5e49723127
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=277541
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