operations:automated_maintenance
Differences
This shows you the differences between two versions of the page.
| operations:automated_maintenance [2026/06/17 14:24] – created - external edit 127.0.0.1 | operations:automated_maintenance [2026/06/17 14:26] (current) – privacyl0st | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Automated Maintenance & Watchdogs ====== | ||
| + | To truly achieve a zero-touch architecture, | ||
| + | |||
| + | ===== 1. The VPN Watchdog Loop (VM-A) ===== | ||
| + | While `systemd` handles daemon crashes, it cannot detect if the VPN daemon is running but the actual network tunnel is stalled (a silent drop). We deploy a bash loop to validate tunnel integrity by pinging an external DNS server through the `nordlynx` interface. If it fails, the script forcefully restarts the VPN and the download engines. | ||
| + | |||
| + | ==== Deployment ==== | ||
| + | 1. Create the script file: `sudo nano / | ||
| + | 2. Paste the script block from [[reference: | ||
| + | 3. Make the script executable: `sudo chmod +x / | ||
| + | |||
| + | ==== Crontab Scheduling ==== | ||
| + | To run this validation check every 5 minutes, add it to the root crontab: | ||
| + | < | ||
| + | <file bash> | ||
| + | */5 * * * * / | ||
| + | </ | ||
| + | |||
| + | ===== 2. Edge Proxy Configuration Backup (VM-D) ===== | ||
| + | Because the Raspberry Pi Edge Proxy relies on SD cards or USB flash memory—which have higher failure rates than enterprise SSDs—you must automatically back up its NGINX configurations and Let's Encrypt certificates to the core NAS. | ||
| + | |||
| + | ==== Deployment via Rsync ==== | ||
| + | This script packages the critical `/ | ||
| + | |||
| + | 1. Create the script file: `sudo nano / | ||
| + | 2. Paste the script block from [[reference: | ||
| + | 3. Make the script executable: `sudo chmod +x / | ||
| + | 4. Schedule via crontab to run weekly on Sunday at 1:00 AM: | ||
| + | |||
| + | <file bash> | ||
| + | 0 1 * * 0 / | ||
| + | </ | ||
| + | |||
| + | **Next Step:** Learn how to isolate faults and verify infrastructure health in [[operations: | ||
operations/automated_maintenance.1781706254.txt.gz · Last modified: by 127.0.0.1
