custom-services/upnp.service

14 lines
296 B
Desktop File

[Unit]
Description=Yunohost UPnP
After=yunohost-firewall.service
[Service]
Type=oneshot
ExecStart=/usr/bin/yunohost firewall upnp enable
ExecStop=/usr/bin/yunohost firewall upnp disable
#ExecReload=/usr/bin/yunohost firewall upnp reload
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target