git.samba.org
/
metze
/
ctdb
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4391c0
)
events/10.interface: we need to mark interfaces as "up" if we don't know how to monit...
author
Stefan Metzmacher
<metze@samba.org>
Fri, 30 Jul 2010 06:09:40 +0000
(08:09 +0200)
committer
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Fri, 30 Jul 2010 06:33:27 +0000
(16:33 +1000)
metze
config/events.d/10.interface
patch
|
blob
|
history
diff --git
a/config/events.d/10.interface
b/config/events.d/10.interface
index 3ef6594452957a24d0694cc0a3a9582db975f0ab..de2f92ad9b88f29c93c13bf2f30d04c26c29cc44 100755
(executable)
--- a/
config/events.d/10.interface
+++ b/
config/events.d/10.interface
@@
-78,9
+78,17
@@
monitor_interfaces()
case $IFACE in
lo*)
# loopback is always working
+ test -n "$OLDLINK" && {
+ ok=1 # we only set ok for interfaces known to ctdbd
+ ctdb setifacelink $IFACE up
+ }
;;
ib*)
# we dont know how to test ib links
+ test -n "$OLDLINK" && {
+ ok=1 # we only set ok for interfaces known to ctdbd
+ ctdb setifacelink $IFACE up
+ }
;;
*)
[ -z "$IFACE" ] || {