ref #6596 - stop touching /var/run/booting

Ref: https://github.com/opnsense/core/issues/6596#issuecomment-1575160947
This commit is contained in:
William Desportes 2023-06-04 00:31:53 +02:00 committed by Franco Fichtner
parent 81fa5fd332
commit 97343e3aae

View File

@ -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);
}