mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-21 02:00:42 +01:00
probably a regression of the last startup changes. Also added a test for this to the testbench. closes https://github.com/rsyslog/rsyslog/issues/172
17 lines
685 B
Bash
Executable File
17 lines
685 B
Bash
Executable File
echo \[imuxsock_hostname.sh\]: test set hostname
|
|
source $srcdir/diag.sh init
|
|
source $srcdir/diag.sh startup imuxsock_hostname.conf
|
|
# the message itself is irrelevant. The only important thing is
|
|
# there is one
|
|
./syslog_caller -m1 -C "uxsock:testbench_socket"
|
|
# the sleep below is needed to prevent too-early termination of rsyslogd
|
|
./msleep 100
|
|
source $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages
|
|
source $srcdir/diag.sh wait-shutdown # we need to wait until rsyslogd is finished!
|
|
cmp rsyslog.out.log $srcdir/resultdata/imuxsock_hostname.log
|
|
if [ ! $? -eq 0 ]; then
|
|
echo "imuxsock_hostname.sh failed"
|
|
exit 1
|
|
fi;
|
|
source $srcdir/diag.sh exit
|