This is the mail archive of the cluster-cvs@sourceware.org mailing list for the cluster.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

master - cman notifyd: add man page


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=a0de947f4b87a5f2478f61b0346cca4c493c1ce1
Commit:        a0de947f4b87a5f2478f61b0346cca4c493c1ce1
Parent:        d3055d651762ad198fd60cd83254c179a1e27b33
Author:        Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate:    Tue Nov 4 08:20:10 2008 +0100
Committer:     Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Tue Nov 4 08:20:10 2008 +0100

cman notifyd: add man page

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
 cman/man/Makefile      |    3 +-
 cman/man/cmannotifyd.8 |   49 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 51 insertions(+), 1 deletions(-)

diff --git a/cman/man/Makefile b/cman/man/Makefile
index fbbc6e3..54d7c9a 100644
--- a/cman/man/Makefile
+++ b/cman/man/Makefile
@@ -2,7 +2,8 @@ TARGET= cman.5 \
 	qdisk.5 \
 	cman_tool.8 \
 	qdiskd.8 \
-	mkqdisk.8
+	mkqdisk.8 \
+	cmannotifyd.8
 
 include ../../make/defines.mk
 include $(OBJDIR)/make/man.mk
diff --git a/cman/man/cmannotifyd.8 b/cman/man/cmannotifyd.8
new file mode 100644
index 0000000..42122c6
--- /dev/null
+++ b/cman/man/cmannotifyd.8
@@ -0,0 +1,49 @@
+.TH "cmannotifyd" "8" "November 2008" "" "CMAN Notification Daemon"
+.SH "NAME"
+cmannotifyd \- CMAN Notification Daemon
+.SH "SYNOPSIS"
+\fBcmannotifyd [\-f] [\-d]
+.SH "DESCRIPTION"
+.PP 
+The \fBcmannotifyd\fP daemon talks to CMAN and provides a mechanism to notify
+external entities about cluster changes.
+
+CMAN dispatches 3 kind of notifications:
+
+\- CMAN_REASON_TRY_SHUTDOWN when cman requests to all clients if it is allowed
+to shutdown.
+
+\- CMAN_REASON_STATECHANGE when cman detects a node joining or leaving the
+cluster.
+
+\- CMAN_REASON_CONFIG_UPDATE when a configuration change event has been
+detected/requested.
+
+Those notifications are then dispatches to cman_notify shell script in form of
+environmental variables (CMAN_NOTIFICATION=).
+
+Important notes: cmannotifyd does not block on cman_notify nor check the exit
+status of the script. Notifications are dispatched in the same order as they
+arrive, one by one.
+
+cman_notify will then execute all the scripts in the configured notification
+directory (default: /etc/cluster/cman-notify.d) passing a very minimal set of
+envvars including, of course, the CMAN_NOTIFICATION= type.
+
+cmannotifyd logs are stored in the default log file
+(/var/log/cluster/cmannotifyd.log).
+
+cman_notify logs are stored in the default log file
+(/var/log/cluster/cman_notify.log). By default the output from the scripts
+executed by cman_notify.log is redirected to /dev/null.
+Users can either set CMAN_NOTIFICATION_DEBUG=1 in their environment or
+set proper debug configuration in cluster.conf to redirect scripts output
+to cman_notify log file.
+
+A template for cman_notify scripts can be found in the doc/ directory.
+
+.SH "OPTIONS"
+.IP "\-f"
+Run in the foreground (do not fork / daemonize).
+.IP "\-d"
+Enable debug output.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]