rsyslog/tests/testsuites/execonlywhenprevsuspended-nonsusp.conf
Rainer Gerhards 6c57f3c99e ttestbench: add test for execonly...suspended when action was not suspended
this makes sure the directive prohibits execution as intended
2015-05-27 11:04:59 +02:00

18 lines
561 B
Plaintext

# See main .sh file for info
# rgerhards, 2015-05-27
main_queue(queue.workerthreads="1")
$IncludeConfig diag-common.conf
# omtesting provides the ability to cause "SUSPENDED" action state
module(load="../plugins/omtesting/.libs/omtesting")
$MainMsgQueueTimeoutShutdown 100000
template(name="outfmt" type="string" string="%msg:F,58:2%\n")
:msg, contains, "msgnum:" {
action(type="omfile" file="rsyslog.out.log" template="outfmt")
action(type="omfile" file="rsyslog2.out.log" template="outfmt"
action.ExecOnlyWhenPreviousIsSuspended="on"
)
}