This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Permanent fix: keep WSL + JoGo runner alive every 5 min | |
| # Run this in PowerShell on Lenovo (no admin needed) | |
| # Step 1: Wake WSL | |
| wsl -d Ubuntu -- true | |
| # Step 2: Set up passwordless sudo (one-time, requires password) | |
| Write-Host "Enter your Ubuntu sudo password when prompted:" -ForegroundColor Yellow | |
| wsl -d Ubuntu -- sudo bash -c "echo 'jp ALL=(ALL) NOPASSWD: /bin/systemctl restart actions.runner.socceraustin-jogo.lenovo-wsl.service, /bin/systemctl is-active actions.runner.socceraustin-jogo.lenovo-wsl.service' | tee /etc/sudoers.d/runner-keepalive > /dev/null && chmod 0440 /etc/sudoers.d/runner-keepalive && echo SUDOERS_OK" |