Buckets:
| # Run at boot by the persistent unit skills-boot.service: bring back the guards and the watchdog after a reboot. | |
| # The watchdog then relaunches every unfinished job from code/jobs.conf (all jobs resume from saved progress). | |
| cd /root/skills-db | |
| swapon --show | grep -q /swapfile || swapon /swapfile 2>/dev/null | |
| systemctl is-active --quiet skills-oomguard || systemd-run --unit=skills-oomguard --collect --quiet -p MemoryMax=20M \ | |
| /bin/bash -c 'while true; do for p in $(pgrep -f claude); do echo -900 > /proc/$p/oom_score_adj 2>/dev/null; done; sleep 30; done' | |
| systemctl is-active --quiet skills-memguard || systemd-run --unit=skills-memguard --quiet -p MemoryMax=30M -p Restart=always \ | |
| -p RestartSec=10 --working-directory=/root/skills-db /root/skills-db/code/memguard.sh | |
| systemctl is-active --quiet skills-watchdog || systemd-run --unit=skills-watchdog --quiet -p MemoryMax=300M \ | |
| -p EnvironmentFile=/root/skills-db/.env -p Restart=always -p RestartSec=60 --working-directory=/root/skills-db \ | |
| -p StandardOutput=append:/root/skills-db/logs/watchdog.log -p StandardError=append:/root/skills-db/logs/watchdog.log \ | |
| /root/skills-db/code/watchdog.sh | |
| echo "$(date -u +%FT%TZ) boot.sh: guards + watchdog ensured" >> logs/watchdog.log | |
Xet Storage Details
- Size:
- 1.26 kB
- Xet hash:
- 0c148ea18b2de0020d6f25a370c75298cb2e35a451f029281f348d1a89dfa1bb
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.