mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-17 11:40:42 +01:00
20 lines
748 B
Bash
Executable File
20 lines
748 B
Bash
Executable File
#!/bin/bash
|
|
# check if execonly...suspended works when the first action is *not*
|
|
# suspended --> file1 must be created, file 2 not
|
|
# rgerhards, 2015-05-27
|
|
echo =====================================================================================
|
|
echo \[execonlywhenprevsuspended-nonsusp\]: test execonly...suspended functionality with non-suspended action
|
|
|
|
. $srcdir/diag.sh init
|
|
. $srcdir/diag.sh startup execonlywhenprevsuspended-nonsusp.conf
|
|
. $srcdir/diag.sh injectmsg 0 1000
|
|
. $srcdir/diag.sh shutdown-when-empty
|
|
. $srcdir/diag.sh wait-shutdown
|
|
. $srcdir/diag.sh seq-check 0 999
|
|
if [ -e rsyslog2.out.log ]; then
|
|
echo "error: \"suspended\" file exists, first 10 lines:"
|
|
$RS_HEADCMD rsyslog2.out.log
|
|
exit 1
|
|
fi
|
|
. $srcdir/diag.sh exit
|