summaryrefslogtreecommitdiff
path: root/roles/linux_ns/files/systemd/dn42_bird-lg.service
diff options
context:
space:
mode:
Diffstat (limited to 'roles/linux_ns/files/systemd/dn42_bird-lg.service')
-rw-r--r--roles/linux_ns/files/systemd/dn42_bird-lg.service24
1 files changed, 24 insertions, 0 deletions
diff --git a/roles/linux_ns/files/systemd/dn42_bird-lg.service b/roles/linux_ns/files/systemd/dn42_bird-lg.service
new file mode 100644
index 0000000..85c5358
--- /dev/null
+++ b/roles/linux_ns/files/systemd/dn42_bird-lg.service
@@ -0,0 +1,24 @@
+[Unit]
+Description=Run Bird Looking Glass - DN42 edition
+Requires=network-online.target
+After=network-online.target
+After=dn42_namespace.service
+Requires=dn42_namespace.service
+
+[Service]
+ExecStart=/bin/bash /home/lgproxy/lgstart.sh
+BindReadOnlyPaths=/etc/netns/dn42/resolv.conf:/etc/resolv.conf
+User=lgproxy
+WorkingDirectory=/home/lgproxy/
+Environment="LG_PORT=6142"
+Environment="LG_CONFIG_FILE=/home/lgproxy/lg/lg-dn42.cfg"
+NetworkNamespacePath=/run/netns/dn42
+Type=exec
+PrivateTmp=true
+PrivateDevices=true
+PrivateIPC=true
+
+[Install]
+WantedBy=default.target
+
+#Type=simple