diff --git a/upnp.service b/upnp.service index f48f5be..446911c 100644 --- a/upnp.service +++ b/upnp.service @@ -1,12 +1,12 @@ [Unit] -Description=Upnp service +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 +#ExecReload=/usr/bin/yunohost firewall upnp reload RemainAfterExit=yes [Install] diff --git a/upnp.timer b/upnp.timer new file mode 100644 index 0000000..a484433 --- /dev/null +++ b/upnp.timer @@ -0,0 +1,8 @@ +[Unit] +Description=Yunohost UPnP + +[Timer] +OnCalendar=hourly + +[Install] +WantedBy=timers.target