From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8277 invoked by alias); 4 May 2009 10:11:41 -0000 Received: (qmail 8271 invoked by alias); 4 May 2009 10:11:41 -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: dlm: master - misc: drop obsoleted bits To: cluster-cvs-relay@redhat.com X-Project: Cluster Project X-Git-Module: dlm.git X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: d55c683f3f87edb862450ae879f60e00348fa0fa X-Git-Newrev: 6677d79792dd1ea844cf68e0f77dce59c417a15c From: "Fabio M. Di Nitto" Message-Id: <20090504101114.00013120370@lists.fedorahosted.org> Date: Mon, 04 May 2009 10:11: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/msg00178.txt.bz2 Gitweb: http://git.fedorahosted.org/git/dlm.git?p=dlm.git;a=commitdiff;h=6677d79792dd1ea844cf68e0f77dce59c417a15c Commit: 6677d79792dd1ea844cf68e0f77dce59c417a15c Parent: d55c683f3f87edb862450ae879f60e00348fa0fa Author: Fabio M. Di Nitto AuthorDate: Mon May 4 12:10:51 2009 +0200 Committer: Fabio M. Di Nitto CommitterDate: Mon May 4 12:10:51 2009 +0200 misc: drop obsoleted bits Signed-off-by: Fabio M. Di Nitto --- doc/Makefile | 14 ---------- doc/cluster.logrotate.in | 8 ------ doc/cman_notify_template.sh | 57 ------------------------------------------- 3 files changed, 0 insertions(+), 79 deletions(-) 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