port LXC side to Alpine/OpenRC, add Proxmox host-side creator
- Replace systemd units with OpenRC init scripts (supervise-daemon) - Add wirecon-watchdog-loop.sh since OpenRC has no timers - Switch install.sh to apk + rc-update - Update bootstrap.sh to install git/bash via apk - New proxmox/create-lxc.sh: picks next VMID, downloads Alpine template, creates unprivileged LXC with tun passthrough, chains bootstrap - Rewrite README around the Proxmox one-liner flow
This commit is contained in:
1 parent
390e10b06d
commit
5b9abdae08
13 files changed
+290
-128
No files matched your search
Executable
+20
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
# Supervised loop: run the watchdog tick every WATCHDOG_INTERVAL seconds.
|
||||
# Kept separate from wirecon-watchdog.sh so the tick logic remains testable
|
||||
# as a one-shot (`/usr/local/bin/wirecon-watchdog.sh`).
|
||||
|
||||
set -uo pipefail
|
||||
|
||||
CONF="${WIRECON_CONF:-/etc/wirecon/wirecon.conf}"
|
||||
# shellcheck source=/dev/null
|
||||
[[ -r "$CONF" ]] && source "$CONF"
|
||||
|
||||
: "${WATCHDOG_INTERVAL:=20}"
|
||||
|
||||
trap 'exit 0' SIGTERM SIGINT
|
||||
|
||||
while :; do
|
||||
/usr/local/bin/wirecon-watchdog.sh || true
|
||||
sleep "$WATCHDOG_INTERVAL" &
|
||||
wait $!
|
||||
done
|
||||
Reference in new issue
Block a user