auth/common: add support for auth4_ctx->check_ntlm_password_send/recv()
[Samba.git] / ctdb / config / notify.sh
blobd98f04660a147b8e9e6de7562fc6dfe20e7150f7
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