wireguard-setup/systemd/vpnclient-wg-restart.service

13 lines
279 B
SYSTEMD
Raw Normal View History

2021-09-21 12:03:45 +00:00
[Unit]
Description=Wireguard Restart
After=network-online.target vpnclient-mount.service
Requires=network-online.target
Requisite=vpnclient-mount.service
[Service]
User=root
Group=root
Type=oneshot
ExecStart=/snacks/wireguard/scripts/rotate.py
NetworkNamespacePath=/run/vpn/net