1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/ctdb/config/notify.sh
Martin Schwenke 4bdf97a935 ctdb-scripts: Change directory for notifications to events/notification
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2018-06-05 17:47:26 +02:00

20 lines
345 B
Bash
Executable File

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