summaryrefslogtreecommitdiffstats
path: root/src/etc/rc.start_packages
diff options
context:
space:
mode:
Diffstat (limited to 'src/etc/rc.start_packages')
-rwxr-xr-xsrc/etc/rc.start_packages14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/etc/rc.start_packages b/src/etc/rc.start_packages
index 3d8bbbc..233c236 100755
--- a/src/etc/rc.start_packages
+++ b/src/etc/rc.start_packages
@@ -39,13 +39,13 @@ require_once("pfsense-utils.inc");
require_once("service-utils.inc");
if (file_exists("{$g['tmp_path']}/.rc.start_packages.running")) {
- $stat = stat("{$g['tmp_path']}/.rc.start_packages.running");
- if (time() - $stat['mtime'] >= 90) {
- @unlink("{$g['tmp_path']}/.rc.start_packages.running");
- } else {
- log_error("Skipping STARTing packages process because previous/another instance is already running");
- return;
- }
+ $stat = stat("{$g['tmp_path']}/.rc.start_packages.running");
+ if (time() - $stat['mtime'] >= 90) {
+ @unlink("{$g['tmp_path']}/.rc.start_packages.running");
+ } else {
+ log_error("Skipping STARTing packages process because previous/another instance is already running");
+ return;
+ }
}
@file_put_contents("{$g['tmp_path']}/.rc.start_packages.running", "");
OpenPOWER on IntegriCloud