summaryrefslogtreecommitdiff
path: root/roles/linux-ns/files/systemd/dn42_namespace.service
diff options
context:
space:
mode:
authoruvok cheetah2025-02-02 15:21:26 +0100
committeruvok cheetah2025-02-02 15:21:26 +0100
commit526797b41c8dfffc7e74a951c17ef96734980e7a (patch)
tree84e562022de12f2cedc089ae8d0cbfdc02c595e9 /roles/linux-ns/files/systemd/dn42_namespace.service
parent0ee94b306e667225b64804f169f15a961e966511 (diff)
Add role for Dn42 and network namespace
Diffstat (limited to 'roles/linux-ns/files/systemd/dn42_namespace.service')
-rw-r--r--roles/linux-ns/files/systemd/dn42_namespace.service17
1 files changed, 17 insertions, 0 deletions
diff --git a/roles/linux-ns/files/systemd/dn42_namespace.service b/roles/linux-ns/files/systemd/dn42_namespace.service
new file mode 100644
index 0000000..4034879
--- /dev/null
+++ b/roles/linux-ns/files/systemd/dn42_namespace.service
@@ -0,0 +1,17 @@
+# fine-adjustments, routing, etcpp
+
+[Unit]
+Description=DN42 Network namespace
+After=network-online.target my-netns@dn42.service
+Requires=my-netns@dn42.service
+Before=dn42_tinc@tn_int.service
+WantedBy=dn42_tinc@tn_int.service
+
+[Install]
+WantedBy=multi-user.target
+
+[Service]
+Type=oneshot
+ExecStart=/usr/local/bin/dn42-route-namespace.sh start
+ExecStop=/usr/local/bin/dn42-route-namespace.sh stop
+RemainAfterExit=yes