diff options
author | ngie <ngie@FreeBSD.org> | 2015-02-02 09:24:40 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-02-02 09:24:40 +0000 |
commit | 99d3fdc9f394dbc9e14f8e7235b6648606448c07 (patch) | |
tree | 31705a54e37709633e318592d7b7d9a24bc95a68 /etc | |
parent | 91a6a3651fb2778cd5fa06f3a86a518c2581f34e (diff) | |
download | FreeBSD-src-99d3fdc9f394dbc9e14f8e7235b6648606448c07.zip FreeBSD-src-99d3fdc9f394dbc9e14f8e7235b6648606448c07.tar.gz |
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
Diffstat (limited to 'etc')
-rw-r--r-- | etc/Makefile | 5 | ||||
-rw-r--r-- | etc/newsyslog.conf.d/Makefile | 13 | ||||
-rw-r--r-- | etc/newsyslog.conf.d/opensm.conf | 3 |
3 files changed, 20 insertions, 1 deletions
diff --git a/etc/Makefile b/etc/Makefile index 85dad70..3847cfe 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -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" diff --git a/etc/newsyslog.conf.d/Makefile b/etc/newsyslog.conf.d/Makefile new file mode 100644 index 0000000..4660957 --- /dev/null +++ b/etc/newsyslog.conf.d/Makefile @@ -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> diff --git a/etc/newsyslog.conf.d/opensm.conf b/etc/newsyslog.conf.d/opensm.conf new file mode 100644 index 0000000..36248bd --- /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 |