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