1.1 --- a/scripts/functions Wed May 23 21:08:24 2007 +0000
1.2 +++ b/scripts/functions Fri May 25 19:30:42 2007 +0000
1.3 @@ -519,12 +519,14 @@
1.4 CT_DoLoadState(){
1.5 local state_name="$1"
1.6 local state_dir="${CT_STATE_DIR}/${state_name}"
1.7 + local old_RESTART="${CT_RESTART}"
1.8 + local old_STOP="${CT_STOP}"
1.9
1.10 # We need to do something special with the log file!
1.11 if [ "${CT_LOG_TO_FILE}" = "y" ]; then
1.12 exec >"${state_dir}/tail.log"
1.13 fi
1.14 - CT_DoLog DEBUG "Restoring state at step \"${state_name}\"..."
1.15 + CT_DoLog INFO "Restoring state at step \"${state_name}\", as requested."
1.16
1.17 case "${CT_DEBUG_CT_SAVE_STEPS_GZIP}" in
1.18 y) tar_opt=xzf; tar_ext=".tar.gz";;
1.19 @@ -551,6 +553,11 @@
1.20 CT_DoLog DEBUG " Restoring environment"
1.21 . "${state_dir}/env.sh" >/dev/null 2>&1 || true
1.22
1.23 + # Restore the new RESTART and STOP steps
1.24 + CT_RESTART="${old_RESTART}"
1.25 + CT_STOP="${old_STOP}"
1.26 + unset old_stop old_restart
1.27 +
1.28 if [ "${CT_LOG_TO_FILE}" = "y" ]; then
1.29 CT_DoLog DEBUG " Restoring log file"
1.30 exec >/dev/null