summaryrefslogtreecommitdiffstats
path: root/tests/testsuites/memq-persist2.conf
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-05-25 15:40:23 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-05-25 15:40:23 +0200
commit78bc40e1af312d076c4cc2225c9281b6725217f6 (patch)
treed41a063708c7dd36376044ac508c2c669f332f8d /tests/testsuites/memq-persist2.conf
parent598b1d73ca7815dc19906f86c6700402dc869eb4 (diff)
parentddf74cc165c828139632170224356175c9c24e96 (diff)
downloadrsyslog-78bc40e1af312d076c4cc2225c9281b6725217f6.tar.gz
rsyslog-78bc40e1af312d076c4cc2225c9281b6725217f6.tar.xz
rsyslog-78bc40e1af312d076c4cc2225c9281b6725217f6.zip
Merge branch 'diag'
Diffstat (limited to 'tests/testsuites/memq-persist2.conf')
-rw-r--r--tests/testsuites/memq-persist2.conf20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/testsuites/memq-persist2.conf b/tests/testsuites/memq-persist2.conf
new file mode 100644
index 00000000..23e29e2f
--- /dev/null
+++ b/tests/testsuites/memq-persist2.conf
@@ -0,0 +1,20 @@
+# Test for persisting messages to disk on shutdown
+# rgerhards, 2009-04-17
+$ModLoad ../plugins/imtcp/.libs/imtcp
+$MainMsgQueueTimeoutShutdown 10000
+$MainMsgQueueSaveOnShutdown on
+$InputTCPServerRun 13514
+
+$ModLoad ../plugins/imdiag/.libs/imdiag
+$IMDiagServerRun 13500
+
+$ErrorMessagesToStderr off
+
+# set spool locations and switch queue to disk-only mode
+$WorkDirectory test-spool
+$MainMsgQueueFilename mainq
+$MainMsgQueueType LinkedList
+
+$template outfmt,"%msg:F,58:2%\n"
+$template dynfile,"rsyslog.out.log" # trick to use relative path names!
+:msg, contains, "msgnum:" ?dynfile;outfmt