From 89c164965bacd5082bdc2cd20f711b2432caaeac Mon Sep 17 00:00:00 2001 From: Antoine Lima Date: Sun, 20 Mar 2022 21:43:07 +0000 Subject: [PATCH] Added timer to UPnP to make sure it works when the box restarts --- upnp.service | 4 ++-- upnp.timer | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 upnp.timer 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