Added timer to UPnP to make sure it works when the box restarts
This commit is contained in:
parent
99f8c8ce0d
commit
89c164965b
@ -1,12 +1,12 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Upnp service
|
Description=Yunohost UPnP
|
||||||
After=yunohost-firewall.service
|
After=yunohost-firewall.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/usr/bin/yunohost firewall upnp enable
|
ExecStart=/usr/bin/yunohost firewall upnp enable
|
||||||
ExecStop=/usr/bin/yunohost firewall upnp disable
|
ExecStop=/usr/bin/yunohost firewall upnp disable
|
||||||
ExecReload=/usr/bin/yunohost firewall upnp reload
|
#ExecReload=/usr/bin/yunohost firewall upnp reload
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
8
upnp.timer
Normal file
8
upnp.timer
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Yunohost UPnP
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=hourly
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
Loading…
x
Reference in New Issue
Block a user