diff options
author | Jesse Gilles <jgilles@multitech.com> | 2015-04-29 10:41:27 -0500 |
---|---|---|
committer | Jesse Gilles <jgilles@multitech.com> | 2015-04-29 10:41:27 -0500 |
commit | 069036707bb987959d1cbe96ee5e04d48bb5a3b5 (patch) | |
tree | 483f5a28bf48d5fb4cc21592b378d58fcc384b74 | |
parent | 369241fd7426c083ab76efac874d2ab31249d23f (diff) | |
download | meta-mlinux-069036707bb987959d1cbe96ee5e04d48bb5a3b5.tar.gz meta-mlinux-069036707bb987959d1cbe96ee5e04d48bb5a3b5.tar.bz2 meta-mlinux-069036707bb987959d1cbe96ee5e04d48bb5a3b5.zip |
mosquitto: add logrotate config
-rw-r--r-- | recipes-connectivity/mosquitto/mosquitto/mosquitto.logrotate.conf | 7 | ||||
-rw-r--r-- | recipes-connectivity/mosquitto/mosquitto_1.4.bb | 6 |
2 files changed, 12 insertions, 1 deletions
diff --git a/recipes-connectivity/mosquitto/mosquitto/mosquitto.logrotate.conf b/recipes-connectivity/mosquitto/mosquitto/mosquitto.logrotate.conf new file mode 100644 index 0000000..5f4779b --- /dev/null +++ b/recipes-connectivity/mosquitto/mosquitto/mosquitto.logrotate.conf @@ -0,0 +1,7 @@ +/var/log/mosquitto.log { + size 512k + rotate 4 + compress + copytruncate + missingok +} diff --git a/recipes-connectivity/mosquitto/mosquitto_1.4.bb b/recipes-connectivity/mosquitto/mosquitto_1.4.bb index e3e1449..319ca49 100644 --- a/recipes-connectivity/mosquitto/mosquitto_1.4.bb +++ b/recipes-connectivity/mosquitto/mosquitto_1.4.bb @@ -7,12 +7,13 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=62ddc846179e908dc0c8efec4a42ef20" DEPENDS = "c-ares openssl" -PR = "r1" +PR = "r2" SRC_URI = "http://mosquitto.org/files/source/${PN}-${PV}.tar.gz \ file://mosquitto.init \ file://mosquitto.conf \ file://mosquitto.default \ + file://mosquitto.logrotate.conf \ file://nostrip.patch \ " @@ -33,6 +34,9 @@ do_install() { install -m 0755 ${WORKDIR}/mosquitto.init ${D}${sysconfdir}/init.d/mosquitto install -m 0644 ${WORKDIR}/mosquitto.conf ${D}${sysconfdir}/mosquitto/ install -m 0644 ${WORKDIR}/mosquitto.default ${D}${sysconfdir}/default/mosquitto + + install -d ${D}${sysconfdir}/logrotate.d + install -m 0644 ${WORKDIR}/mosquitto.logrotate.conf ${D}${sysconfdir}/logrotate.d/mosquitto.conf } PACKAGES += "libmosquitto1 libmosquittopp1 ${PN}-clients ${PN}-python" |