Changeset 1315 in MondoRescue for branches/2.2.2/mindi/rootfs/sbin/init


Ignore:
Timestamp:
Apr 16, 2007, 4:13:59 PM (17 years ago)
Author:
Bruno Cornec
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/rootfs/sbin/init

    r1273 r1315  
    367367        mount_cmd="mount /dev/shm -t tmpfs -o size=$size" ; # was 34m until 04/2003
    368368        LogIt "Trying '$mount_cmd'"
    369     $mount_cmd /tmp/tmpfs 2>> /$LOGFILE
     369    $mount_cmd /tmp/tmpfs 2>> $LOGFILE
    370370    res=$?
    371371    [ "$res" -eq "0" ] && break
     
    434434MINDI_REV=RRR
    435435trap CaughtSoftReset SIGTERM
    436 LOGFILE=/tmp/mondo-restore.log
     436LOGFILE=/tmp/mondorestore.log
    437437PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/mondo:/usr/games
    438438GROOVY=/tmp/groovy-stuff
    439439USER=root
    440 export PATH GROOVY USER
     440export PATH GROOVY USER LOGFILE
    441441
    442442echo "Welcome to init (from mindi ${MINDI_VER}-r${MINDI_REV}"
Note: See TracChangeset for help on using the changeset viewer.