public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* fence-agents: master - misc: drop obsoleted bits
@ 2009-05-04 10:14 Fabio M. Di Nitto
0 siblings, 0 replies; only message in thread
From: Fabio M. Di Nitto @ 2009-05-04 10:14 UTC (permalink / raw)
To: cluster-cvs-relay
Gitweb: http://git.fedorahosted.org/git/fence-agents.git?p=fence-agents.git;a=commitdiff;h=b011771943f16259d32ff64b330bbb4c89e24548
Commit: b011771943f16259d32ff64b330bbb4c89e24548
Parent: f7afbe0e07c5781db59f4279a61c723f50a22026
Author: Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate: Mon May 4 12:14:04 2009 +0200
Committer: Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Mon May 4 12:14:04 2009 +0200
misc: drop obsoleted bits
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
Makefile | 2 -
doc/Makefile | 14 ----------
doc/cluster.logrotate.in | 8 ------
doc/cman_notify_template.sh | 57 -------------------------------------------
make/defines.mk.input | 1 -
make/install.mk | 4 ---
make/uninstall.mk | 3 --
7 files changed, 0 insertions(+), 89 deletions(-)
diff --git a/Makefile b/Makefile
index 18a57b3..389f9a1 100644
--- a/Makefile
+++ b/Makefile
@@ -21,14 +21,12 @@ 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 || :;
diff --git a/doc/Makefile b/doc/Makefile
index 10a076c..3af5e4c 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -7,20 +7,6 @@ DOCS = gfs2.txt \
COPYRIGHT \
README.licence
-TARGET= cluster
-
-LOGRORATED = $(TARGET)
-
-all: $(TARGET)
-
include ../make/defines.mk
include $(OBJDIR)/make/install.mk
include $(OBJDIR)/make/uninstall.mk
-include $(OBJDIR)/make/clean.mk
-
-$(TARGET):
- cat $(S)/$(TARGET).logrotate.in | sed \
- -e 's#@LOGDIR@#${logdir}#g' \
- > $(TARGET)
-
-clean: generalclean
diff --git a/doc/cluster.logrotate.in b/doc/cluster.logrotate.in
deleted file mode 100644
index df7d94c..0000000
--- a/doc/cluster.logrotate.in
+++ /dev/null
@@ -1,8 +0,0 @@
-@LOGDIR@/*log {
- missingok
- compress
- notifempty
- daily
- rotate 7
- create 0600 root root
-}
diff --git a/doc/cman_notify_template.sh b/doc/cman_notify_template.sh
deleted file mode 100644
index ef43860..0000000
--- a/doc/cman_notify_template.sh
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/bin/bash
-
-# This is a simple template that can be used as reference
-# for notification scripts. Note: notification scripts need
-# to be executable in order for cman_notify to run them.
-
-# Set the path for the commands you expect to execute!
-# cmannotifyd does not set any for you.
-
-PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
-
-# define a simple wrapper to echo that will log to file only if
-# debugging is enable.
-my_echo() {
- [ -n "$OUT" ] && echo $@ >> $OUT
-}
-
-LOGFILE="/var/log/cluster/file.log"
-
-# verify if you are running in debugging mode
-if [ "$CMAN_NOTIFICATION_DEBUG" = "1" ]; then
- # in debuggin mode, we want to see the whole output somewhere
- OUT="$LOGFILE"
- my_echo "debugging is enabled"
-fi
-
-# parse the notification we received.
-case "$CMAN_NOTIFICATION" in
- CMAN_REASON_CONFIG_UPDATE)
- # we received a configuration change
- my_echo "replace me with something to do"
- ;;
- CMAN_REASON_STATECHANGE)
- # we received a status change. A node might have left or joined
- # the cluster
- my_echo "replace me with something to do"
-
- # STATECHANGE contains information about the quorum status of
- # the node.
- # 1 = the node is part of a quorate cluster
- # 0 = there is no quorum
- if [ "$CMAN_NOTIFICATION_QUORUM" = "1" ]; then
- my_echo "we still have quorum"
- fi
- ;;
- CMAN_REASON_TRY_SHUTDOWN)
- # we received a shutdown request. It means that cman might go
- # offline very soon.
- my_echo "replace me with something to do"
- ;;
- *)
- # we received an unknown notification.
- my_echo "no clue of what to do with this"
- ;;
-esac
-
-exit 0
diff --git a/make/defines.mk.input b/make/defines.mk.input
index cb40363..370cbd9 100644
--- a/make/defines.mk.input
+++ b/make/defines.mk.input
@@ -7,7 +7,6 @@ logdir ?= ${DESTDIR}@LOGDIR@
mandir ?= ${DESTDIR}@MANDIR@
incdir ?= ${DESTDIR}@INCDIR@
snmpbin ?= @SNMPBIN@
-notifyddir ?= ${DESTDIR}@CONFDIR@/cman-notify.d
# Build information
diff --git a/make/install.mk b/make/install.mk
index 4319bbf..f462e43 100644
--- a/make/install.mk
+++ b/make/install.mk
@@ -29,7 +29,3 @@ ifdef DOCS
install -m644 $(S)/$$i ${docdir}; \
done
endif
-ifdef NOTIFYD
- install -d ${notifyddir}
- install -m755 ${NOTIFYD} ${notifyddir}
-endif
diff --git a/make/uninstall.mk b/make/uninstall.mk
index bc5c33c..33e40c3 100644
--- a/make/uninstall.mk
+++ b/make/uninstall.mk
@@ -14,6 +14,3 @@ endif
ifdef DOCS
${UNINSTALL} ${DOCS} ${docdir}
endif
-ifdef NOTIFYD
- ${UNINSTALL} ${NOTIFYD} ${notifyddir}
-endif
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-05-04 10:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-04 10:14 fence-agents: master - misc: drop obsoleted bits Fabio M. Di Nitto
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).