From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10004 invoked by alias); 4 May 2009 10:16:08 -0000 Received: (qmail 9998 invoked by alias); 4 May 2009 10:16:08 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Status: No, hits=-1.9 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 bastion2.fedora.phx.redhat.com Subject: gfs1-utils: master - misc: drop obsoleted bits To: cluster-cvs-relay@redhat.com X-Project: Cluster Project X-Git-Module: gfs1-utils.git X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: fcdb9ae6f1936ec17663ebfa166bc60ffc99a356 X-Git-Newrev: f5d58c22800af62489cc0ae0bc160fb019a29889 From: "Fabio M. Di Nitto" Message-Id: <20090504101536.91794120370@lists.fedorahosted.org> Date: Mon, 04 May 2009 10:16: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-q2/txt/msg00181.txt.bz2 Gitweb: http://git.fedorahosted.org/git/gfs1-utils.git?p=gfs1-utils.git;a=commitdiff;h=f5d58c22800af62489cc0ae0bc160fb019a29889 Commit: f5d58c22800af62489cc0ae0bc160fb019a29889 Parent: fcdb9ae6f1936ec17663ebfa166bc60ffc99a356 Author: Fabio M. Di Nitto AuthorDate: Mon May 4 12:15:21 2009 +0200 Committer: Fabio M. Di Nitto CommitterDate: Mon May 4 12:15:21 2009 +0200 misc: drop obsoleted bits Signed-off-by: Fabio M. Di Nitto --- 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 56c92e3..67d24c8 100644 --- a/Makefile +++ b/Makefile @@ -34,14 +34,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