From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17773 invoked by alias); 24 Mar 2009 20:25:16 -0000 Received: (qmail 17711 invoked by alias); 24 Mar 2009 20:25:16 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Check-By: sourceware.org X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bastion.fedora.phx.redhat.com Subject: cluster: STABLE3 - build/init: install/create common dirs To: cluster-cvs-relay@redhat.com X-Project: Cluster Project X-Git-Module: cluster.git X-Git-Refname: refs/heads/STABLE3 X-Git-Reftype: branch X-Git-Oldrev: 89a730658a9a603844f1c3f86abc0e8909964f57 X-Git-Newrev: bc35ee114614a599b6638a60c30b953d5f61dc0f From: "Fabio M. Di Nitto" Message-Id: <20090324202457.5EB6E1201A0@lists.fedorahosted.org> Date: Tue, 24 Mar 2009 20:25:00 -0000 X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 Mailing-List: contact cluster-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cluster-cvs-owner@sourceware.org X-SW-Source: 2009-q1/txt/msg00887.txt.bz2 Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=bc35ee114614a599b6638a60c30b953d5f61dc0f Commit: bc35ee114614a599b6638a60c30b953d5f61dc0f Parent: 89a730658a9a603844f1c3f86abc0e8909964f57 Author: Fabio M. Di Nitto AuthorDate: Tue Mar 24 21:23:48 2009 +0100 Committer: Fabio M. Di Nitto CommitterDate: Tue Mar 24 21:23:48 2009 +0100 build/init: install/create common dirs a bunch of directories need to be created either at install time or by init scripts for the stack to operate properly. Make sure that the basic is all there from upstream. Signed-off-by: Fabio M. Di Nitto --- Makefile | 8 ++++++++ cman/init.d/cman.in | 3 +++ 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/Makefile b/Makefile index 9100dec..4885d63 100644 --- a/Makefile +++ b/Makefile @@ -54,9 +54,17 @@ oldconfig: install: set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i $@; done + install -d ${notifyddir} + install -d ${logdir} + install -d ${DESTDIR}/var/lib/cluster + install -d ${DESTDIR}/var/run/cluster uninstall: set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i $@; done + rmdir ${notifyddir} || :; + rmdir ${logdir} || :; + rmdir ${DESTDIR}/var/lib/cluster || :; + rmdir ${DESTDIR}/var/run/cluster || :; clean: set -e && for i in ${REALSUBDIRS}; do \ diff --git a/cman/init.d/cman.in b/cman/init.d/cman.in index fed4b1e..4785186 100644 --- a/cman/init.d/cman.in +++ b/cman/init.d/cman.in @@ -415,6 +415,9 @@ start() { echo "Starting cluster: " + # required for distributions that use tmpfs for /var/run + mkdir -p /var/run/cluster + xend_bridged_net_enabled if [ $? -eq 0 ] then