"Fossies" - the Fresh Open Source Software Archive

Member "rsyslog-8.1911.0/tests/arrayqueue.sh" (17 Oct 2019, 704 Bytes) of package /linux/misc/rsyslog-8.1911.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/bash
    2 # Test for fixedArray queue mode
    3 # added 2009-05-20 by rgerhards
    4 # This file is part of the rsyslog project, released  under ASL 2.0
    5 . ${srcdir:=.}/diag.sh init
    6 generate_conf
    7 add_conf '
    8 $ModLoad ../plugins/imtcp/.libs/imtcp
    9 $MainMsgQueueTimeoutShutdown 10000
   10 $InputTCPServerRun '$TCPFLOOD_PORT'
   11 
   12 # set spool locations and switch queue to disk-only mode
   13 $MainMsgQueueType FixedArray
   14 
   15 $template outfmt,"%msg:F,58:2%\n"
   16 template(name="dynfile" type="string" string=`echo $RSYSLOG_OUT_LOG`) # trick to use relative path names!
   17 :msg, contains, "msgnum:" ?dynfile;outfmt
   18 '
   19 startup
   20 
   21 # 40000 messages should be enough
   22 injectmsg  0 40000
   23 shutdown_when_empty
   24 wait_shutdown 
   25 seq_check 0 39999
   26 exit_test