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.service9
1 files changed, 6 insertions, 3 deletions
diff --git a/roles/linux-ns/files/systemd/dn42_bird-lg.service b/roles/linux-ns/files/systemd/dn42_bird-lg.service
index 9ea081c..85c5358 100644
--- a/roles/linux-ns/files/systemd/dn42_bird-lg.service
+++ b/roles/linux-ns/files/systemd/dn42_bird-lg.service
@@ -1,7 +1,5 @@
-# bird-lg service for DN42
-
[Unit]
-Description=Run Bird Looking Glass - DN42
+Description=Run Bird Looking Glass - DN42 edition
Requires=network-online.target
After=network-online.target
After=dn42_namespace.service
@@ -9,11 +7,16 @@ 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