diff options
Diffstat (limited to 'roles/linux_ns/files/systemd/dn42_namespace.service')
-rw-r--r-- | roles/linux_ns/files/systemd/dn42_namespace.service | 17 |
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 |