You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
QA/tests/p_syslog/syslog_logging.sh

19 lines
373 B

#!/bin/bash
# Author: Athmane Madjoudj <athmanem@gmail.com>
t_Log "Running $0 - check if syslog deamon is working"
logger "t_functional_logging_test"
sleep 2
if [ "$centos_ver" -ge 8 ]; then
t_Log "Dumping journalctl to /var/log/maillog"
journalctl >> /var/log/messages
fi
grep "t_functional_logging_test" /var/log/messages > /dev/null 2>&1
t_CheckExitStatus $?