automatically restart service after vpn reconnects

This commit is contained in:
Late Night Defender 2024-12-09 12:14:21 +07:00
parent 418e41e555
commit 93df53ab69
2 changed files with 1 additions and 0 deletions

View file

@ -4,6 +4,7 @@ Description=Reconnect VPN
[Service] [Service]
Type=oneshot Type=oneshot
ExecStart=nmcli con up vpn-name ExecStart=nmcli con up vpn-name
ExecStartPost=systemctl --user restart my-service
[Install] [Install]
WantedBy=default.target WantedBy=default.target