git.samba.org
/
bbaumbach
/
samba-autobuild
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
ctdb-tests: Add generic logging of event details in 00.test event script
[bbaumbach/samba-autobuild/.git]
/
ctdb
/
tests
/
simple
/
etc-ctdb
/
events
/
legacy
/
00.test.script
1
#!/bin/sh
2
# event script for 'make test'
3
4
. "${CTDB_BASE}/functions"
5
6
ctdb_check_args "$@"
7
8
event="$1"
9
shift
10
11
case "$event" in
12
startup)
13
IFACES=`ctdb ifaces -X | grep -v '^|Name|LinkStatus|References|'`
14
for I in $IFACES; do
15
IFACE=`echo -n "$I" | cut -d '|' -f2`
16
ctdb setifacelink $IFACE up
17
done
18
;;
19
esac
20
21
echo "${event} event${*:+ for }$*"