diff options
author | Martin Schwenke <martin@meltin.net> | 2011-07-05 17:21:57 +1000 |
---|---|---|
committer | Martin Schwenke <martin@meltin.net> | 2011-08-12 16:34:34 +1000 |
commit | c9d168bbe43bc70c232c40b72a25f064891d7de2 (patch) | |
tree | da41ab50d3f993ffd7590887ab9980c89f0a9379 | |
parent | 5ab955a73d80fb2992cab8b746a1af7268bb3f58 (diff) | |
download | samba-c9d168bbe43bc70c232c40b72a25f064891d7de2.tar.gz samba-c9d168bbe43bc70c232c40b72a25f064891d7de2.tar.xz samba-c9d168bbe43bc70c232c40b72a25f064891d7de2.zip |
Eventscripts: 10.interfaces - make startup event actually mark interfaces up!
The startup event intends to mark interfaces up. However, it doesn't
actually do that because $INTERFACES is empty.
This uses the function get_all_interfaces() to list the
interfaces... and then mark them up.
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit fc62bf0975c6059ee467285565d0dc3b4daaf238)
-rwxr-xr-x | ctdb/config/events.d/10.interface | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ctdb/config/events.d/10.interface b/ctdb/config/events.d/10.interface index e34f467faa..0e428d0efd 100755 --- a/ctdb/config/events.d/10.interface +++ b/ctdb/config/events.d/10.interface @@ -145,10 +145,9 @@ case "$1" in # and we start the services to become healthy startup) # Assume all links are good initially - INTERFACES=`for IFACE in $INTERFACES ; do echo $IFACE ; done | sort | uniq` - - for IFACE in $INTERFACES ; do - ctdb setifacelink $IFACE up >/dev/null 2>/dev/null + get_all_interfaces + for iface in $all_interfaces ; do + ctdb setifacelink $iface up >/dev/null 2>/dev/null done monitor_interfaces |