upnpd.service 828 B

12345678910111213141516171819202122
  1. [Unit]
  2. Description=UPnP Internet Gateway Device version 2 daemon
  3. After=network.target
  4. [Service]
  5. Environment="LAN=eth0"
  6. Environment="WAN=eth0"
  7. EnvironmentFile=/etc/default/upnpd
  8. # For the UPnP library to function correctly, networking must be configured
  9. # properly for multicasting as described in
  10. # https://sourceforge.net/p/pupnp/code/ci/master/tree/README.
  11. # Without this addition, device advertisements and control point searches will
  12. # not function.
  13. # However, the route has to be configured once for all UPnP applications
  14. # (igd2-for-linux, ushare, ...) so do not manage UPnP route by default
  15. #ExecStartPre=/sbin/route add -net 239.0.0.0 netmask 255.0.0.0 $LAN
  16. #ExecStopPost=/sbin/route del -net 239.0.0.0 netmask 255.0.0.0 $LAN
  17. ExecStart=/usr/sbin/upnpd -f $WAN $LAN
  18. Restart=always
  19. [Install]
  20. WantedBy=multi-user.target