automatically restart service after vpn reconnects
This commit is contained in:
parent
418e41e555
commit
93df53ab69
2 changed files with 1 additions and 0 deletions
|
@ -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
|
Loading…
Reference in a new issue