wireguard-setup/systemd/vpnclient-wg.service

18 lines
369 B
SYSTEMD
Raw Normal View History

2021-09-21 12:03:45 +00:00
[Unit]
Description=Wireguard
After=network-online.target vpnclient-mount.service
Requires=network-online.target
Requisite=vpnclient-mount.service
[Service]
User=root
Group=root
Type=oneshot
EnvironmentFile=/snacks/wireguard/env
ExecStart=/snacks/wireguard/scripts/connect.py
NetworkNamespacePath=/run/vpn/net
RemainAfterExit=true
[Install]
WantedBy=multi-user.target