From: Christian Hofstaedtler Date: Thu, 24 Nov 2011 12:37:59 +0000 (+0100) Subject: Append .log to grml-buildd.std{out,err} logfile names X-Git-Tag: v0.17.0~78 X-Git-Url: https://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=a135bda06bcf54ea195583637902c3f3fac05e4e Append .log to grml-buildd.std{out,err} logfile names --- diff --git a/buildd/functions.sh b/buildd/functions.sh index 9aa4cd6..64d8fe4 100755 --- a/buildd/functions.sh +++ b/buildd/functions.sh @@ -69,8 +69,8 @@ grml_live_run() { TIME_START=$(date +%s) grml-live -F $* -a $ARCH -s $SUITE -c $CLASSES -o $OUTPUT_DIR \ -g "$grml_name" -v "$shortdate" -r grml-live-autobuild -i $ISO_NAME \ - >/var/log/grml-buildd.stdout \ - 2>/var/log/grml-buildd.stderr ; RC=$? + >/var/log/grml-buildd.stdout.log \ + 2>/var/log/grml-buildd.stderr.log ; RC=$? TIME_END=$(date +%s) WALLTIME=$(($TIME_END-$TIME_START)) @@ -84,7 +84,7 @@ grml_live_run() { # create log archive: create_logs() { - ( cd / && tar zcfh $ATTACHMENT $FAI_LOGFILES /var/log/grml-buildd.stderr /var/log/grml-buildd.stdout $GRML_LOGFILE >/dev/null ) + ( cd / && tar zcfh $ATTACHMENT $FAI_LOGFILES /var/log/grml-buildd.stderr.log /var/log/grml-buildd.stdout $GRML_LOGFILE >/dev/null ) } # store logs on remote server: @@ -146,7 +146,7 @@ See attached files for further details. EOF" | \ mutt -e "my_hdr From: grml-live autobuild daemon <$FROM>" -s "$SCRIPTNAME [${DATE}] - $RC_INFO" \ - -a /var/log/grml-buildd.stderr $MUTT_ATTACH -- "$RECIPIENT" + -a /var/log/grml-buildd.stderr.log $MUTT_ATTACH -- "$RECIPIENT" } # make sure we store the final iso: diff --git a/docs/grml-live.txt b/docs/grml-live.txt index e7c83e5..a7cda97 100644 --- a/docs/grml-live.txt +++ b/docs/grml-live.txt @@ -464,7 +464,7 @@ The FAI part of grml-live logs to /var/log/fai/$HOSTNAME/ - so the default being /var/log/fai/grml/. If you are using the grml-live buildd you will find the logs of the grml-live -run at /var/log/grml-buildd.stdout and /var/log/grml-buildd.stderr. +run at /var/log/grml-buildd.stdout.log and /var/log/grml-buildd.stderr.log. If you want to store build information in a database just install the grml-live-db Debian package. Further details available in the grml-live-db