smbd: Use asys_results
[Samba.git] / ctdb / config / notify.sh
blobdfcb81a5516132bb54fed832945f2f88cc620a68
1 #!/bin/sh
3 # This script is activated by setting CTDB_NOTIFY_SCRIPT=/etc/ctdb/notify.sh
4 # in /etc/sysconfig/ctdb
6 # This is script is invoked from ctdb when certain events happen. See
7 # /etc/ctdb/notify.d/README for more details.
9 d=$(dirname $0)
10 nd="${d}/notify.d"
12 ok=true
14 for i in "${nd}/"* ; do
15 # Don't run files matching basename
16 case "${i##*/}" in
17 *~|*,|*.rpm*|*.swp|README) continue ;;
18 esac
20 # Files must be executable
21 [ -x "$i" ] || continue
23 # Flag failures
24 "$i" "$1" || ok=false
25 done
27 $ok