Blame tests/p_syslog/syslog_logging.sh

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