aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2013-10-02 09:31:48 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2013-10-03 01:15:42 -0400
commite453b41853be01dad8c2f672b3dbb50833e7d2a1 (patch)
tree2cb881ed56e6d8e8f3a5047f8acc24451474800d
parentd55da8ead69d11ca6f4b0009e010ef32ccab900e (diff)
downloadmeta-cloud-services-e453b41853be01dad8c2f672b3dbb50833e7d2a1.tar.gz
meta-cloud-services-e453b41853be01dad8c2f672b3dbb50833e7d2a1.tar.bz2
meta-cloud-services-e453b41853be01dad8c2f672b3dbb50833e7d2a1.zip
rabbitmq: add /var/log/rabbitmq to packaging
For systems with non-volatile /var mounts, adding /var/log/rabbmitmq to the main package allows logging to be enabled by default. For volatile /var based systems, it does no harm, but does not always create the directory on boot. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
-rw-r--r--meta-openstack/recipes-extended/rabbitmq/rabbitmq-server_3.0.4.bb6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta-openstack/recipes-extended/rabbitmq/rabbitmq-server_3.0.4.bb b/meta-openstack/recipes-extended/rabbitmq/rabbitmq-server_3.0.4.bb
index d916b25..6a50444 100644
--- a/meta-openstack/recipes-extended/rabbitmq/rabbitmq-server_3.0.4.bb
+++ b/meta-openstack/recipes-extended/rabbitmq/rabbitmq-server_3.0.4.bb
@@ -31,6 +31,8 @@ do_install() {
install -d ${D}${libdir}/rabbitmq/lib/${PN}-${PV}
+ install -d ${D}${localstatedir}/log/${PN}
+
install -d ${D}${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/rabbitmq-server ${D}${sysconfdir}/init.d/rabbitmq-server
@@ -49,6 +51,8 @@ USERADD_PARAM_${PN} = "--system --home /var/lib/rabbitmq -g rabbitmq \
INITSCRIPT_NAME = "rabbitmq-server"
INITSCRIPT_PARAMS = "defaults"
-FILES_${PN} += " ${libdir}/rabbitmq/lib/${PN}-${PV}/*"
+FILES_${PN} += " ${libdir}/rabbitmq/lib/${PN}-${PV}/* \
+ ${localstatedir}/* \
+ "
FILES_${PN}-doc += "LICENSE* INSTALL"