distribution/packages/network/wireguard-tools/config/system.d/wireguard.service.sample
2022-02-05 09:23:32 -05:00

13 lines
421 B
Text

[Unit]
Description=WireGuard VPN Service
After=network-online.target nss-lookup.target connman-vpn.service time-sync.target
Wants=network-online.target nss-lookup.target connman-vpn.service time-sync.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/connmanctl connect vpn_service_name_goes_here
ExecStop=/usr/bin/connmanctl disconnect vpn_service_name_goes_here
[Install]
WantedBy=multi-user.target