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
This commit is contained in:
ngie 2015-02-02 09:24:40 +00:00
parent 91a6a3651f
commit 99d3fdc9f3
3 changed files with 20 additions and 1 deletions

View File

@ -3,8 +3,11 @@
.include <bsd.own.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 <bsd.own.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