2024-02-07 21:55:12 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Wireguard
|
|
|
|
After=network-online.target vpnclient-mount.service
|
|
|
|
Requires=network-online.target
|
|
|
|
Requisite=wireguard-mount.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=root
|
|
|
|
Group=root
|
|
|
|
Type=oneshot
|
|
|
|
EnvironmentFile=/snacks/wireguard/env
|
|
|
|
ExecStart=/snacks/wireguard/scripts/connect_basic.py
|
|
|
|
NetworkNamespacePath=/run/vpn/net
|
|
|
|
RemainAfterExit=true
|
2024-02-10 16:58:50 +00:00
|
|
|
RuntimeDirectory=vpnclient
|
|
|
|
RuntimeDirectoryMode=0600
|
2024-02-07 21:55:12 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|