- 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
19 lines
478 B
Plaintext
Executable File
19 lines
478 B
Plaintext
Executable File
#!/sbin/openrc-run
|
|
# wirecon watchdog — OpenRC has no timers, so we supervise a loop wrapper
|
|
# that re-runs the tick script every WATCHDOG_INTERVAL seconds.
|
|
|
|
name="wirecon-watchdog"
|
|
description="wirecon WireGuard tunnel watchdog"
|
|
|
|
supervisor="supervise-daemon"
|
|
command="/usr/local/bin/wirecon-watchdog-loop.sh"
|
|
respawn_delay=5
|
|
respawn_max=0
|
|
output_log="/var/log/wirecon-watchdog.log"
|
|
error_log="/var/log/wirecon-watchdog.log"
|
|
|
|
depend() {
|
|
need net
|
|
after wg-quick.wg0
|
|
}
|