diff options
author | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2010-08-27 15:20:31 +0000 |
---|---|---|
committer | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2010-08-27 15:20:31 +0000 |
commit | ac59403c39fd73c5e43e81694398c00071d8355a (patch) | |
tree | d59fa1d167cf3da5a201a9d2d8548a0957e08112 /sbin/hastd/hast.conf.5 | |
parent | 0becad39a71834f12c09c16070e20b9a0f70f5af (diff) | |
download | src-ac59403c39fd73c5e43e81694398c00071d8355a.tar.gz src-ac59403c39fd73c5e43e81694398c00071d8355a.zip |
Document new 'exec' parameter.
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
Notes
Notes:
svn path=/head/; revision=211887
Diffstat (limited to 'sbin/hastd/hast.conf.5')
-rw-r--r-- | sbin/hastd/hast.conf.5 | 40 |
1 files changed, 39 insertions, 1 deletions
diff --git a/sbin/hastd/hast.conf.5 b/sbin/hastd/hast.conf.5 index 11f7244e21e5..f312648f9b97 100644 --- a/sbin/hastd/hast.conf.5 +++ b/sbin/hastd/hast.conf.5 @@ -1,4 +1,5 @@ .\" Copyright (c) 2010 The FreeBSD Foundation +.\" Copyright (c) 2010 Pawel Jakub Dawidek <pjd@FreeBSD.org> .\" All rights reserved. .\" .\" This software was developed by Pawel Jakub Dawidek under sponsorship from @@ -27,7 +28,7 @@ .\" .\" $FreeBSD$ .\" -.Dd August 5, 2010 +.Dd August 27, 2010 .Dt HAST.CONF 5 .Os .Sh NAME @@ -59,6 +60,7 @@ control <addr> listen <addr> replication <mode> timeout <seconds> +exec <path> on <node> { # Node section @@ -78,6 +80,7 @@ resource <name> { name <name> local <path> timeout <seconds> + exec <path> on <node> { # Resource-node section @@ -203,6 +206,41 @@ replication mode is currently not implemented. Connection timeout in seconds. The default value is .Va 5 . +.It Ic exec Aq path +.Pp +Execute the given program on various HAST events. +Below is the list of currently implemented events and arguments the given +program is executed with: +.Bl -tag -width ".Ic xxxx" +.It Ic "<path> syncstart <resource>" +.Pp +Executed on primary node when synchronization process of secondary node is +started. +.Pp +.It Ic "<path> syncdone <resource>" +.Pp +Executed on primary node when synchronization process of secondary node is +completed successfully. +.Pp +.It Ic "<path> syncintr <resource>" +.Pp +Executed on primary node when synchronization process of secondary node is +interrupted, most likely due to secondary node outage or connection failure +between the nodes. +.Pp +.El +The +.Aq path +argument should contain full path to executable program. +If the given program exits with code different than +.Va 0 , +.Nm hastd +will log it as an error. +.Pp +The +.Aq resource +argument is resource name from the configuration file. +.Pp .It Ic name Aq name .Pp GEOM provider name that will appear as |