fence: master - misc: drop obsoleted bits
Fabio M. Di Nitto
fabbione@fedoraproject.org
Mon May 4 10:12:00 GMT 2009
Gitweb: http://git.fedorahosted.org/git/fence.git?p=fence.git;a=commitdiff;h=ad69b029a866c35d009537d3e47bf44cf133ca63
Commit: ad69b029a866c35d009537d3e47bf44cf133ca63
Parent: 4736e64b5f29557b64304b42b94997d3a7b638cf
Author: Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate: Mon May 4 12:12:02 2009 +0200
Committer: Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Mon May 4 12:12:02 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 -------------------------------------------
4 files changed, 0 insertions(+), 81 deletions(-)
diff --git a/Makefile b/Makefile
index 3c324d5..7c70258 100644
--- a/Makefile
+++ b/Makefile
@@ -28,14 +28,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
More information about the Cluster-cvs
mailing list