summaryrefslogtreecommitdiff
path: root/src/systemd
diff options
context:
space:
mode:
authorjack9603301 <jack9603301@163.com>2021-03-25 19:20:49 +0800
committerjack9603301 <jack9603301@163.com>2021-11-13 18:42:04 +0800
commitb57b048623d0c336ed7e4b9293cab32ed82324e3 (patch)
tree3fce9fe8c1d45a683a6cab9b1be8bc61cb99b2cb /src/systemd
parent600d0c76750a0430ae5594ea89a0340c7f0d9785 (diff)
downloadvyos-1x-b57b048623d0c336ed7e4b9293cab32ed82324e3.tar.gz
vyos-1x-b57b048623d0c336ed7e4b9293cab32ed82324e3.zip
upnpd: T3420: Implement features
Diffstat (limited to 'src/systemd')
-rw-r--r--src/systemd/miniupnpd.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/systemd/miniupnpd.service b/src/systemd/miniupnpd.service
new file mode 100644
index 000000000..51cb2eed8
--- /dev/null
+++ b/src/systemd/miniupnpd.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=UPnP service
+ConditionPathExists=/run/upnp/miniupnp.conf
+After=vyos-router.service
+StartLimitIntervalSec=0
+
+[Service]
+WorkingDirectory=/run/upnp
+Type=simple
+ExecStart=/usr/sbin/miniupnpd -d -f /run/upnp/miniupnp.conf
+PrivateTmp=yes
+PIDFile=/run/miniupnpd.pid
+Restart=on-failure