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: fence: master - misc: drop obsoleted bits
Date: Mon, 04 May 2009 10:12:00 -0000	[thread overview]
Message-ID: <20090504101216.2AE8C120370@lists.fedorahosted.org> (raw)

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


                 reply	other threads:[~2009-05-04 10:12 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=20090504101216.2AE8C120370@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).