distribution/packages/network/wireguard-tools/config/system.d/wireguard.service.sample

14 lines
421 B
Text
Raw Normal View History

2022-02-05 14:23:32 +00:00
[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