1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/ctdb/tests/events

40 lines
520 B
Plaintext
Raw Normal View History

#!/bin/sh
# event script for 'make test'
cmd="$1"
shift
case $cmd in
monitor)
echo "`date` monitor event"
exit 0
;;
startup)
echo "`date` ctdb startup event"
exit 0;
;;
takeip)
echo "`date` ctdb takeip event for $1 $2 $3"
exit 0
;;
releaseip)
echo "`date` ctdb releaseip event for $1 $2 $3"
exit 0
;;
recovered)
echo "`date` ctdb recovered event"
exit 0
;;
shutdown)
echo "`date` ctdb shutdown event"
exit 0
;;
esac
echo "`/bin/date` Invalid command $cmd"
exit 1