summaryrefslogtreecommitdiffstats
path: root/tests/testsuites/execonlyonce.conf
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-11-12 13:14:39 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2009-11-12 13:14:39 +0100
commit0a5b731f2f18168795bcdefd9b6fa562dce6a0d5 (patch)
treec40937a25c2887cd267f8dcc43a00dece5d3258a /tests/testsuites/execonlyonce.conf
parent9407f2a3e08940d0dd0367c5904654f5a56117af (diff)
downloadrsyslog-0a5b731f2f18168795bcdefd9b6fa562dce6a0d5.tar.gz
rsyslog-0a5b731f2f18168795bcdefd9b6fa562dce6a0d5.tar.xz
rsyslog-0a5b731f2f18168795bcdefd9b6fa562dce6a0d5.zip
bugfix: $ActionExecOnlyOnceEveryInterval did not work.
This was a regression from the time() optimizations done in v4. Bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=143 Thanks to Klaus Tachtler for reporting this bug.
Diffstat (limited to 'tests/testsuites/execonlyonce.conf')
-rw-r--r--tests/testsuites/execonlyonce.conf12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/testsuites/execonlyonce.conf b/tests/testsuites/execonlyonce.conf
new file mode 100644
index 00000000..085b970e
--- /dev/null
+++ b/tests/testsuites/execonlyonce.conf
@@ -0,0 +1,12 @@
+# see the equally-named .sh file for details
+# rgerhards, 2009-11-12
+$IncludeConfig diag-common.conf
+
+$ModLoad ../plugins/imtcp/.libs/imtcp
+$MainMsgQueueTimeoutShutdown 10000
+$InputTCPServerRun 13514
+
+$template outfmt,"%msg:F,58:2%\n"
+$template dynfile,"rsyslog.out.log" # trick to use relative path names!
+$ActionExecOnlyOnceEveryInterval 3
+:msg, contains, "msgnum:" ?dynfile;outfmt