This commit is contained in:
2026-03-06 00:48:46 +01:00
parent e477c336d9
commit b670326f17

View File

@@ -5,7 +5,14 @@ set_time_limit(0);
$root = dirname(__DIR__, 2); $root = dirname(__DIR__, 2);
chdir($root); chdir($root);
require $root . '/config/fileload.php'; $fileload = $root . '/config/fileload.php';
if (!file_exists($fileload)) {
fwrite(STDERR, "[worker] Missing config: {$fileload}\n");
while (true) {
sleep(30);
}
}
require $fileload;
$module = 'pi_control'; $module = 'pi_control';
$pdo = module_fn($module, 'pdo'); $pdo = module_fn($module, 'pdo');