TMP: add a ctdb snapshot of current ctdb master (git://git.samba.org/ctdb.git) to...
[obnox/samba/samba-obnox.git] / ctdb / config / README
1 This directory contains run-time support scripts for CTDB.
2
3 Selected highlights:
4
5   ctdb.init
6
7     An initscript for starting ctdbd at boot time.
8
9   events.d/
10
11     Eventscripts.  See events.d/README for more details.
12
13   functions
14
15     Support functions, sourced by eventscripts and other scripts.
16
17   interface_modify.sh
18
19     Script to support add/remove IPs and other funky stuff.  Not sure
20     why this is separate... but it certainly allows easy wrapping by
21     flock.
22
23   statd-callout
24
25     rpc.statd high-availability callout to support lock migration on
26     failover.
27
28 Notes:
29
30 * All of these scripts are written in POSIX Bourne shell.  Please
31   avoid bash-isms, including the use of "local" variables (which are
32   not available in POSIX shell).
33
34 * Do not use absolute paths for commands.  Unit tests attempt to
35   replace many commands with stubs and can not do this if commands are
36   specified with absolute paths.  The functions file controls $PATH so
37   absolute paths should not be required.