Added timer to UPnP to make sure it works when the box restarts

This commit is contained in:
Antoine Lima 2022-03-20 21:43:07 +00:00
parent 99f8c8ce0d
commit 89c164965b
2 changed files with 10 additions and 2 deletions

View File

@ -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]

8
upnp.timer Normal file
View File

@ -0,0 +1,8 @@
[Unit]
Description=Yunohost UPnP
[Timer]
OnCalendar=hourly
[Install]
WantedBy=timers.target