20 lines
428 B
Desktop File
20 lines
428 B
Desktop File
[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
|
|
RuntimeDirectory=vpnclient
|
|
RuntimeDirectoryMode=0600
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|