isFile()) continue; if (!preg_match('/\.(sh|md)$/i', $_rf->getFilename())) continue; $_rel = ltrim(str_replace($_repoBase, '', $_rf->getPathname()), '/'); $_parts = explode('/', $_rel); if (in_array($_parts[0], $_repoSkip)) continue; $_repoFiles[] = $_rel; } } catch (Exception $_re) {} sort($_repoFiles); // Docs tree: README and Manual with their per-module children $_mainReadme = in_array('README.md', $_repoFiles) ? 'README.md' : null; $_childReadmes = array_values(array_filter($_repoFiles, function($f) { return preg_match('/^README/i', basename($f)) && $f !== 'README.md'; })); sort($_childReadmes); $_mainManual = in_array('Manual.md', $_repoFiles) ? 'Manual.md' : null; $_childManuals = array_values(array_filter($_repoFiles, function($f) { return preg_match('/^Manual/i', basename($f)) && $f !== 'Manual.md'; })); sort($_childManuals); // Job stats for notification board $totalJobs = 0; $scheduledJobs = 0; foreach ($tree as $orch) { $totalJobs++; if (!empty($orch['cron']) && $orch['enabled']) $scheduledJobs++; foreach (($orch['children'] ?? []) as $child) { $totalJobs++; if (!empty($child['cron']) && $child['enabled']) $scheduledJobs++; } } $runningScripts = []; exec('pgrep -af bash 2>/dev/null', $psLines); foreach ($psLines as $line) { if (preg_match('#' . preg_quote(SCRIPTS_DIR, '#') . '/([^\s]+\.sh)#', $line, $rm)) { $runningScripts[] = basename($rm[1], '.sh'); } } $runningScripts = array_unique($runningScripts); ?>
--dry-run; no changes written to disk--log flag for per-item detail outputarray_start or array_stop; badge appears; fires on Unraid array start/stop; works on any orch or custom scriptNot enterprise HA. No SLAs, no quorum nodes, no guaranteed uptime — don't put your billing system on this. What it is: mutual automatic failover between two independent unRAID servers. When one goes down the other starts its containers, cuts over DNS, and keeps users online. When it comes back, everything hands back in the correct sequence — DDNS stops, containers stop, rsync writeback runs, containers start on the primary, primary DDNS starts last — so users hit the returning server only after it's actually ready. Built from scratch. Refined through a year of production testing. The DDNS sequencing and handback order were the hardest parts to get right. Both directions are exercised regularly with fallback_test.sh.
= htmlspecialchars($orch['suggested_cron']) ?>
">
= ($_or || $orch['enabled']) ? '●' : '○' ?>