more output
authorJason Etheridge <jason@esilibrary.com>
Tue, 13 Aug 2013 19:18:13 +0000 (15:18 -0400)
committerJason Etheridge <jason@esilibrary.com>
Tue, 13 Aug 2013 19:18:13 +0000 (15:18 -0400)
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
installer/wheezy/eg_wheezy_installer.sh

index 4801856..2a6ccb7 100755 (executable)
@@ -14,6 +14,8 @@
 # GNU General Public License for more details.
 # -----------------------------------------------------------------------
 
+date
+
 DOJO_VERSION='1.3.3';
 
 export PATH=/openils/bin:$PATH
@@ -291,6 +293,10 @@ fi
 
 if [ $AUTOSTART ]; then
 
+if [ $LIVETEST ]; then
+    rm /openils/var/log/*.log
+fi
+
 OSRF_COMMAND='
 export LD_LIBRARY_PATH=/openils/lib:/usr/local/lib:/usr/local/lib/dbd:$LD_LIBRARY_PATH \
 && export PATH=/openils/bin:$PATH \
@@ -327,19 +333,36 @@ if [ $LIVETEST ]; then
     echo _.-~= Running perl live tests
     su - opensrf sh -c 'export PATH=/openils/bin:$PATH ; cd /home/opensrf/Evergreen/Open-ILS/src/perlmods/ ; make livecheck; echo Return Value = $?'
     echo End of perl live tests =~-._
+    echo _.-~= Gathering log summary
+    echo ''
+    echo 'wc -l *.log:'
+    su - opensrf sh -c 'cd /openils/var/log/ ; wc -l *.log'
+    echo ''
+    echo 'du -sh *.log:'
+    su - opensrf sh -c 'cd /openils/var/log/ ; du -sh *.log'
+    echo ''
+    echo 'perl -ne 'if (/^\[.*?\] (.*?) \[/) { print "$1\n"; }' osrfsys.log | sort | uniq -c | sort -k2:'
+    (cd /openils/var/log/ ; perl -ne 'if (/^\[.*?\] (.*?) \[/) { print "$1\n"; }' osrfsys.log | sort | uniq -c | sort -k2)
+    echo ''
+    echo End of log summary =~-._
     echo _.-~= Gathering system information
     echo ''
     uname -a
     echo 'select version();' | su - postgres -c 'psql -At'
     echo ''
+    echo '/proc/meminfo:'
     cat /proc/meminfo
     echo ''
+    echo '/proc/cpuinfo:'
     cat /proc/cpuinfo
     echo ''
+    echo 'dpkg --list:'
     dpkg --list
     echo ''
+    echo 'cpan -l:'
     sudo cpan -l
     echo End of system information =~-._
+    date
 else
     cat <<EOF
 * Test the system