[Unit] Description=Create network namespace and tun device to %I After=nnss-ssh@%i.service Requires=nnss-ssh@%i.service StopWhenUnneeded=yes [Service] Type=notify NotifyAccess=all RuntimeDirectory=nnss-tunsocks%i ExecStart=/usr/lib/nnss/tunsocks.sh "%i" setup ExecStop=/usr/lib/nnss/tunsocks.sh "%i" cleanup [Install] WantedBy=multi-user.target