rsyslog/tests/failover-async.sh
2017-04-13 14:07:38 +02:00

21 lines
630 B
Bash
Executable File

#!/bin/bash
# This file is part of the rsyslog project, released under GPLv3
echo ===============================================================================
echo \[failover-async.sh\]: async test for failover functionality
uname
if [ `uname` = "SunOS" ] ; then
echo "This test currently does not work on all flavors of Solaris."
exit 77
fi
. $srcdir/diag.sh init
. $srcdir/diag.sh startup failover-async.conf
. $srcdir/diag.sh injectmsg 0 5000
echo doing shutdown
. $srcdir/diag.sh shutdown-when-empty
echo wait on shutdown
. $srcdir/diag.sh wait-shutdown
. $srcdir/diag.sh seq-check 0 4999
. $srcdir/diag.sh exit