[Unit]
Description=Run Bird Looking Glass Proxy
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

#Type=simple