forked from rsyslog/rsyslog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dircreate_off.sh
executable file
·21 lines (21 loc) · 928 Bytes
/
dircreate_off.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
# Test for automatic creation of dynafile directories
# note that we use the "test-spool" directory, because it is handled by diag.sh
# in any case, so we do not need to add any extra new test dir.
# added 2009-11-30 by Rgerhards
# This file is part of the rsyslog project, released under GPLv3
# uncomment for debugging support:
echo ===================================================================================
echo \[dircreate_off_off.sh\]: testing automatic directory creation for dynafiles - default
. $srcdir/diag.sh init
. $srcdir/diag.sh startup dircreate_off.conf
. $srcdir/diag.sh injectmsg 0 1 # a single message is sufficient
. $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages
. $srcdir/diag.sh wait-shutdown
if [ -e test-logdir/rsyslog.out.log ]
then
echo "test-logdir or logfile WAS created where not permitted to!"
exit 1
fi
exit
. $srcdir/diag.sh exit