2
0
mirror of https://github.com/dadevel/wg-netns synced 2024-10-30 21:20:12 +00:00
wg-netns/wg-netns@.service
dadevel 59a67b445c
rewrite with dataclasses
Adds 'managed' option and yaml support, renames env vars and can load profiles by name.
Closes #4.
2022-01-26 10:55:32 +01:00

19 lines
418 B
Desktop File

[Unit]
Description=WireGuard Network Namespace (%i)
Wants=network-online.target nss-lookup.target
After=network-online.target nss-lookup.target
[Service]
Type=oneshot
Environment=WG_ENDPOINT_RESOLUTION_RETRIES=infinity
Environment=WG_VERBOSE=1
ExecStart=wg-netns up %i
ExecStop=wg-netns down %i
RemainAfterExit=yes
WorkingDirectory=%E/wireguard
ConfigurationDirectory=wireguard
[Install]
WantedBy=multi-user.target