#!/usr/bin/env php run(); fwrite(STDOUT, json_encode($status, JSON_UNESCAPED_SLASHES) . PHP_EOL); exit(($status['ready'] ?? false) === true ? 0 : 1); } catch (Throwable $throwable) { error_log('[bird-control-plane-auto-activate] Failed: ' . get_class($throwable)); fwrite(STDOUT, '{"ready":false,"errorCode":"bird_auto_activation_failed"}' . PHP_EOL); exit(1); }