summaryrefslogtreecommitdiffstats
path: root/ctdb
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2014-01-15 14:16:52 +1100
committerAmitay Isaacs <amitay@samba.org>2014-05-05 03:55:08 +0200
commite09147b6a31371d46b269563b707313619616564 (patch)
tree8e0f1b42a01140aa02cfb4426723b8d673019fd1 /ctdb
parentbe71a84565e9e7532a77c175732b764d1f42c1cd (diff)
downloadsamba-e09147b6a31371d46b269563b707313619616564.tar.gz
samba-e09147b6a31371d46b269563b707313619616564.tar.xz
samba-e09147b6a31371d46b269563b707313619616564.zip
ctdb-eventscripts: Update comment in 11.routing
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb')
-rwxr-xr-xctdb/config/events.d/11.routing21
1 files changed, 13 insertions, 8 deletions
diff --git a/ctdb/config/events.d/11.routing b/ctdb/config/events.d/11.routing
index ccc60e7c9b2..2fe560f73f1 100755
--- a/ctdb/config/events.d/11.routing
+++ b/ctdb/config/events.d/11.routing
@@ -1,15 +1,20 @@
#!/bin/sh
-# script to add entries to the routing table after we have performed a
-# take ip event
-# (when we do a "releaseip" event and remove an ip address from an interface
-# the kernel might automatically remove associated entries from
-# the routing table. This is where we add them back)
+
+# Attempt to add a set of static routes.
+#
+# Do this in "ipreallocated" rather than just "startup" because some
+# of the routes might be missing because the corresponding interface
+# has not previously had any IPs assigned or IPs were previously
+# released and corresponding routes were dropped.
+#
+# Addition of some routes might fail, errors go to /dev/null.
+#
+# Routes to add are defined in $CTDB_BASE/static-routes. Syntax is:
#
-# Routes to add are defined in /etc/ctdb/static-routes.
-# Syntax is :
# IFACE NET/MASK GATEWAY
#
-# Example
+# Example:
+#
# bond1 10.3.3.0/24 10.0.0.1
[ -n "$CTDB_BASE" ] || \