1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-03 01:18:10 +03:00
samba-mirror/ctdb/config/notify.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
345 B
Bash
Raw Normal View History

#!/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