Blame SOURCES/bz996576-pcmk-crm_report_correctly_redirect_error_message_to_dev_null.patch

ed0026
commit e3410ecf4c13dba52d11981b371f4f9c81b369be
ed0026
Author: Andrew Beekhof <andrew@beekhof.net>
ed0026
Date:   Wed Sep 25 12:44:58 2013 +1000
ed0026
ed0026
    Fix: crm_report: Correctly redirect error message to /dev/null
ed0026
    
ed0026
    (cherry picked from commit 2a977cb7a338fdb1e845c5403485c606b8c9eb2f)
ed0026
    
ed0026
    Conflicts:
ed0026
    	tools/report.collector
ed0026
ed0026
diff --git a/tools/report.collector b/tools/report.collector
ed0026
index 00bd319..1667364 100644
ed0026
--- a/tools/report.collector
ed0026
+++ b/tools/report.collector
ed0026
@@ -711,6 +711,13 @@ for l in $logfiles $EXTRA_LOGS; do
ed0026
     cat $b | grep -f $pattfile >> $ANALYSIS_F
ed0026
 done
ed0026
 
ed0026
+which journalctl > /dev/null 2>&1
ed0026
+if [ $? = 0 ]; then
ed0026
+   log "Including segment [$LOG_START-$LOG_END] from journald"
ed0026
+   journalctl --since "$start" --until "$end" > journal.log
ed0026
+   cat journal.log | grep -f $pattfile >> $ANALYSIS_F
ed0026
+fi
ed0026
+
ed0026
 rm -f $pattfile
ed0026
 trap "" 0
ed0026