From 97343e3aaef22571b4bf9492131d3f9942477cb5 Mon Sep 17 00:00:00 2001 From: William Desportes Date: Sun, 4 Jun 2023 00:31:53 +0200 Subject: [PATCH] ref #6596 - stop touching /var/run/booting Ref: https://github.com/opnsense/core/issues/6596#issuecomment-1575160947 --- src/etc/inc/config.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/etc/inc/config.inc b/src/etc/inc/config.inc index 6bbdd5546..bab73c60a 100644 --- a/src/etc/inc/config.inc +++ b/src/etc/inc/config.inc @@ -49,7 +49,11 @@ final class product /* boot detection */ $bootflag = '/var/run/booting'; - @touch($bootflag); + + if (!file_exists($bootflag)) { + @touch($bootflag); + } + $fp = fopen($bootflag, 'r'); self::$data['product_booting'] = $fp && !flock($fp, LOCK_SH | LOCK_NB); }