summaryrefslogtreecommitdiffstats
path: root/ctdb/config/notify.sh
blob: db69afc77c172cb6fe0759532d9c54fd0e78534d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

# This is script is invoked from ctdb when certain events happen.  See
# /etc/ctdb/events/notification/README for more details.

d=$(dirname "$0")
nd="${d}/events/notification"

ok=true

for i in "${nd}/"*.script ; do
    # Files must be executable
    [ -x "$i" ] || continue

    # Flag failures
    "$i" "$1" || ok=false
done

$ok