homek8s/infrastructure/networking/rosenpass/rosenpass-upnp.service

13 lines
418 B
SYSTEMD
Raw Normal View History

[Unit]
Description=Re-assert UPnP mapping for Rosenpass Link B (UDP 9999 -> rpi)
Documentation=https://github.com/rosenpass/rosenpass
After=network-online.target
Wants=network-online.target
[Service]
Type=oneshot
ExecStart=/usr/local/sbin/rosenpass-upnp.sh
# A router reboot drops the mapping; retry a few times before giving up so a
# transient WAN/IGD hiccup does not page anyone.
Restart=on-failure
RestartSec=30s