Add auto reconnect VPN every 15 mins
This commit is contained in:
parent
85180617ee
commit
9a8f73cf88
2 changed files with 17 additions and 0 deletions
9
reconnect-vpn.service
Normal file
9
reconnect-vpn.service
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=Reconnect VPN
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=nmcli con up vpn-name
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
8
reconnect-vpn.timer
Normal file
8
reconnect-vpn.timer
Normal file
|
@ -0,0 +1,8 @@
|
|||
[Unit]
|
||||
Description=Reconnect VPN every 15 minutes
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*:0/15
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
Loading…
Reference in a new issue