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:
parent
02b832180a
commit
3a0eab2e37
@ -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"
|
||||
|
13
etc/newsyslog.conf.d/Makefile
Normal file
13
etc/newsyslog.conf.d/Makefile
Normal 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>
|
3
etc/newsyslog.conf.d/opensm.conf
Normal file
3
etc/newsyslog.conf.d/opensm.conf
Normal file
@ -0,0 +1,3 @@
|
||||
# $FreeBSD$
|
||||
|
||||
/var/log/opensm.log 600 7 * * Z /var/run/opensm.pid 30
|
Loading…
Reference in New Issue
Block a user