Only unset $g['booting'] when it was set here

This commit is contained in:
Renato Botelho 2013-12-24 12:42:45 -02:00
parent 5eb99ec9fa
commit 73abb573fe

View File

@ -42,8 +42,10 @@ log_error("Restarting/Starting all packages.");
setup_library_paths();
/* Detect if we are booting */
if (file_exists("{$g['varrun_path']}/booting"))
if (!isset($g['booting']) && file_exists("{$g['varrun_path']}/booting")) {
$g['booting'] = true;
$unset_g_booting = true;
}
$rcfiles = glob(RCFILEPREFIX . "*.sh");
if (!$rcfiles)
@ -77,6 +79,7 @@ if ($shell) {
}
/* done */
unset($g['booting']);
if ($unset_g_booting)
unset($g['booting']);
?>