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/mondo/src/mondorestore/mondo-restore.c

    r1295 r1315  
    1818#include "mr-externs.h"
    1919#include "mondo-restore.h"
     20#include "mondorestore.h"
    2021#include "mondo-rstr-compare-EXT.h"
    2122#include "mondo-rstr-tools-EXT.h"
     
    29862987    make_hole_for_dir("/tmp/tmpfs");    /* just in case... */
    29872988    run_program_and_log_output("umount " MNT_CDROM, FALSE);
    2988     run_program_and_log_output
    2989         ("ln -sf /var/log/mondo-archive.log /tmp/mondo-restore.log",
     2989    /*
     2990    run_program_and_log_output("ln -sf /var/log/mondo-archive.log /tmp/mondo-restore.log",
    29902991         FALSE);
     2992         */
    29912993
    29922994    run_program_and_log_output("rm -Rf /tmp/tmpfs/mondo.tmp.*", FALSE);
     
    33433345    sprintf(tmp, "rm -Rf %s", bkpinfo->tmpdir);
    33443346    run_program_and_log_output(tmp, FALSE);
    3345     log_to_screen
    3346         ("Restore log copied to /tmp/mondo-restore.log on your hard disk");
     3347    log_to_screen("Restore log (%s) copied to /var/log on your hard disk", MONDO_LOGFILE);
    33473348    sprintf(tmp,
    33483349            "Mondo-restore is exiting (retval=%d)                                      ",
Note: See TracChangeset for help on using the changeset viewer.