summaryrefslogtreecommitdiff
path: root/roles/linux-ns/files/systemd/dn42_bird-lgproxy.service
diff options
context:
space:
mode:
authoruvok cheetah2025-02-09 14:01:10 +0100
committeruvok cheetah2025-02-09 14:01:10 +0100
commit51b69224c7e4bf3819dcb260f59e684c3b297cc9 (patch)
tree1b3d21528be79b36f03cb469b93969a56f8a2964 /roles/linux-ns/files/systemd/dn42_bird-lgproxy.service
parenta2ec10dbd30a17d2ede8ae8897d9245d748c0b3f (diff)
Update service files
restrictions
Diffstat (limited to 'roles/linux-ns/files/systemd/dn42_bird-lgproxy.service')
-rw-r--r--roles/linux-ns/files/systemd/dn42_bird-lgproxy.service9
1 files changed, 6 insertions, 3 deletions
diff --git a/roles/linux-ns/files/systemd/dn42_bird-lgproxy.service b/roles/linux-ns/files/systemd/dn42_bird-lgproxy.service
index cc48ffb..273ab16 100644
--- a/roles/linux-ns/files/systemd/dn42_bird-lgproxy.service
+++ b/roles/linux-ns/files/systemd/dn42_bird-lgproxy.service
@@ -1,19 +1,22 @@
-# bird-lgproxy service for DN42
-
[Unit]
Description=Run Bird Looking Glass Proxy
-Requires=network-online.target bird.service
+Requires=network-online.target dn42_bird.service
After=network-online.target dn42_bird.service
After=dn42_namespace.service
Requires=dn42_namespace.service
[Service]
ExecStart=/bin/bash /home/lgproxy/start.sh
+BindReadOnlyPaths=/etc/netns/dn42/resolv.conf:/etc/resolv.conf
User=lgproxy
WorkingDirectory=/home/lgproxy/
Environment="LGPROXY_PORT=6042"
Environment="LGPROXY_CONFIG_FILE=/home/lgproxy/lgp/lgproxy-dn42.cfg"
NetworkNamespacePath=/run/netns/dn42
+Type=exec
+PrivateTmp=true
+PrivateDevices=true
+PrivateIPC=true
[Install]
WantedBy=default.target