diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-24 23:56:01 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-24 23:56:01 +0200 |
| commit | 25ebc768abbf3cefcc43e7b38dfd9e972d10336d (patch) | |
| tree | 9a43077b9253a05f19cef974911fa3b5c14fb433 | |
| parent | 9e3ae0f5847f73eea73af6ed9f49f93bf2b811f4 (diff) | |
wg1-setup: enable wg-quick@wg1 on boot so WireGuard survives VM reboots
Previously the setup script only started the service (systemctl start),
leaving it disabled. After a reboot WireGuard would not come up
automatically, breaking the tunnel. Now uses systemctl enable before
start so the service is active across reboots.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
| -rw-r--r-- | .hyperstack-vm1-state.json | 2 | ||||
| -rwxr-xr-x | wg1-setup.sh | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/.hyperstack-vm1-state.json b/.hyperstack-vm1-state.json index 7feecb9..896bf15 100644 --- a/.hyperstack-vm1-state.json +++ b/.hyperstack-vm1-state.json @@ -80,7 +80,7 @@ } ], "bootstrapped_at": "2026-03-24T20:57:32Z", - "vllm_setup_at": "2026-03-24T21:48:37Z", + "vllm_setup_at": "2026-03-24T21:55:53Z", "vllm_model": "openai/gpt-oss-120b", "vllm_container_name": "vllm_gpt_oss_120b", "vllm_preset": "gpt-oss-120b", diff --git a/wg1-setup.sh b/wg1-setup.sh index 67f139d..7307a76 100755 --- a/wg1-setup.sh +++ b/wg1-setup.sh @@ -343,9 +343,10 @@ fi REMOTE_SCRIPT print_success "Ollama configured" -echo "Starting wg1 on hyperstack..." -retry_ssh ssh_vm "sudo systemctl start wg-quick@wg1 2>/dev/null || sudo wg-quick up wg1" -print_success "wg1 started on hyperstack" +echo "Enabling and starting wg1 on hyperstack..." +# Enable ensures wg-quick@wg1 starts automatically on reboot. +retry_ssh ssh_vm "sudo systemctl enable wg-quick@wg1 && sudo systemctl start wg-quick@wg1 2>/dev/null || sudo wg-quick up wg1" +print_success "wg1 enabled and started on hyperstack" echo "" echo "=== Setting up earth (local) ===" |
