summaryrefslogtreecommitdiff
path: root/src/systemd
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2022-01-30 00:08:23 +0700
committerGitHub <noreply@github.com>2022-01-30 00:08:23 +0700
commit8aa7ea8f6c841e606b7f0cf49c5249cd4ff087ce (patch)
tree6fadbe1888f87812426239437934b7c24536be74 /src/systemd
parent78b247b724f74bdabab0706aaa7f5b00e5809bc1 (diff)
parentc7cdb87fa09a7e51e13de9939de6f6cc8a6a25fc (diff)
downloadvyos-1x-8aa7ea8f6c841e606b7f0cf49c5249cd4ff087ce.tar.gz
vyos-1x-8aa7ea8f6c841e606b7f0cf49c5249cd4ff087ce.zip
Merge pull request #789 from jack9603301/T3420
upnpd: T3420: Support UPNP protocol
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