summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xetc/rc.start_packages7
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/rc.start_packages b/etc/rc.start_packages
index 3d30587..57de379 100755
--- a/etc/rc.start_packages
+++ b/etc/rc.start_packages
@@ -41,6 +41,10 @@ require_once("service-utils.inc");
log_error("Restarting/Starting all packages.");
setup_library_paths();
+/* Detect if we are booting */
+if (file_exists("{$g['varrun_path']}/booting"))
+ $g['booting'] = true;
+
$rcfiles = glob(RCFILEPREFIX . "*.sh");
if (!$rcfiles)
$rcfiles = array();
@@ -72,4 +76,7 @@ if ($shell) {
pclose($shell);
}
+/* done */
+unset($g['booting']);
+
?>
OpenPOWER on IntegriCloud