public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
From: "Fabio M. Di Nitto" <fabbione@fedoraproject.org>
To: cluster-cvs-relay@redhat.com
Subject: cluster: master - build/init: install/create common dirs
Date: Tue, 24 Mar 2009 20:31:00 -0000	[thread overview]
Message-ID: <20090324203040.E723F1201A0@lists.fedorahosted.org> (raw)

Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=ae8b85f71f38be166cf4de5793c37e952639e69d
Commit:        ae8b85f71f38be166cf4de5793c37e952639e69d
Parent:        25ab811cdd1be2d1593405836719de5a06684d98
Author:        Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate:    Tue Mar 24 21:23:48 2009 +0100
Committer:     Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Tue Mar 24 21:30:30 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 <fdinitto@redhat.com>
---
 Makefile            |    8 ++++++++
 cman/init.d/cman.in |    3 +++
 2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index 509d505..f054ddd 100644
--- a/Makefile
+++ b/Makefile
@@ -37,9 +37,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 b4af24c..67b3b4e 100644
--- a/cman/init.d/cman.in
+++ b/cman/init.d/cman.in
@@ -410,6 +410,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


                 reply	other threads:[~2009-03-24 20:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090324203040.E723F1201A0@lists.fedorahosted.org \
    --to=fabbione@fedoraproject.org \
    --cc=cluster-cvs-relay@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).