Ignore:
Timestamp:
Apr 16, 2007, 4:13:59 PM (12 years ago)
Author:
bruno
Message:

Log files are now consistent: mondoarchive.log for mondoarchive (containing also mindi.log) and mondorestore.log for mondorestore (copied from /tmp (ram) to /var/log (disk) at the end of the restore)
One include has been created for each bianry containing only that declaration ofr the moment, but which will be extended to include all local definitions (ps_* e.g.)
Doc updated accordingly
LOGFILE in restore process is now passed in the environment and not duplicated anymore
LogIt? is not redifined either
LOGFILE should be put in environment by mondoarchive for mindi's usage but that's a step left for later.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.2/mindi/mindi

    r1311 r1315  
    430430    echo "Mindi $MINDI_VERSION is exiting" >> $LOGFILE
    431431    echo "End date : `date`" >> $LOGFILE
     432    if [ "`DidMondoCallMe`" ] ; then
     433        cat $LOGFILE >> /var/log/mondoarchive.log
     434    fi
    432435
    433436    sync
     
    452455    fi
    453456
    454     # Creates a tar file containing all required files
    455     for i in /etc/fstab /etc/lilo.conf /etc/raidtab $LOGFILE /var/log/mondo-archive.log ; do
    456         [ -e "$i" ] && cp -f $i $MINDI_TMP 2>> $LOGFILE
    457     done
    458     rm -f $TMPDIR/mindi.err.*.tgz
    459     tar -cf - $MINDI_TMP | gzip -9 > $TMPDIR/mindi.err.$$.tgz
    460     LogIt "Please e-mail a copy of $TMPDIR/mindi.err.$$.tgz to the mailing list."
     457    LogIt "Please e-mail a copy of $LOGFILE to the mailing list."
    461458    LogIt "See http://www.mondorescue.org for more information."
    462459    LogIt "WE CANNOT HELP unless you enclose that file.\n"
     
    13561353                current_partition=$actual_dev
    13571354            else
    1358                 Die "Your system uses a UUID partition ($current_partition), but you lack the tool to support it.\nPlease replace labels with their correct devices in /etc/fstab or install findfs|blkid|vol_id"
     1355                Die "Your system uses a UUID partition ($current_partition), but you lack the tool to support it.\nPlease replace labels with their correct devices in $MY_FSTAB or install findfs|blkid|vol_id"
    13591356            fi
    13601357        else
     
    28922889mount >> $LOGFILE
    28932890echo "-------------" >> $LOGFILE
     2891if [ -e /etc/raidtab ]; then
     2892    echo "-------------" >> $LOGFILE
     2893    echo "/etc/raidtab content:" >> $LOGFILE
     2894    echo "-------------" >> $LOGFILE
     2895    cat /etc/raidtab >> $LOGFILE
     2896fi
     2897echo "-------------" >> $LOGFILE
    28942898echo "lsmod result:" >> $LOGFILE
    28952899echo "-------------" >> $LOGFILE
     
    30313035    LogIt "------------------------------------------------------------------------------"
    30323036else
    3033     echo "You are using Mindi-Linux v$MINDI_VERSION to make boot+data disks" >> /var/log/mondo-archive.log
     3037    echo "You are using Mindi-Linux v$MINDI_VERSION to make boot+data disks" >> $LOGFILE
    30343038fi
    30353039if [ -f $MINDI_LIB/rootfs/bin/busybox ]; then
Note: See TracChangeset for help on using the changeset viewer.